Merge pull request #20 from brave/matches #10
clippy
10 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 10 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.70.0 (90c541806 2023-05-31)
- cargo 1.70.0 (ec8a8a0ca 2023-04-25)
- clippy 0.1.70 (90c5418 2023-05-31)
Annotations
Check warning on line 351 in src/select.rs
github-actions / clippy
this returns a `Result<_, ()>`
warning: this returns a `Result<_, ()>`
--> src/select.rs:351:5
|
351 | pub fn compile(s: &str) -> Result<Selectors, ()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: use a custom `Error` type instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
Check warning on line 351 in src/select.rs
github-actions / clippy
this returns a `Result<_, ()>`
warning: this returns a `Result<_, ()>`
--> src/select.rs:351:5
|
351 | pub fn compile(s: &str) -> Result<Selectors, ()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: use a custom `Error` type instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
Check warning on line 455 in src/iter.rs
github-actions / clippy
this returns a `Result<_, ()>`
warning: this returns a `Result<_, ()>`
--> src/iter.rs:455:5
|
455 | fn select(self, selectors: &str) -> Result<Select<Self>, ()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: use a custom `Error` type instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
Check warning on line 446 in src/iter.rs
github-actions / clippy
this returns a `Result<_, ()>`
warning: this returns a `Result<_, ()>`
--> src/iter.rs:446:5
|
446 | fn select(self, selectors: &str) -> Result<Select<Elements<Self>>, ()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: use a custom `Error` type instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
Check warning on line 455 in src/iter.rs
github-actions / clippy
this returns a `Result<_, ()>`
warning: this returns a `Result<_, ()>`
--> src/iter.rs:455:5
|
455 | fn select(self, selectors: &str) -> Result<Select<Self>, ()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: use a custom `Error` type instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
Check warning on line 446 in src/iter.rs
github-actions / clippy
this returns a `Result<_, ()>`
warning: this returns a `Result<_, ()>`
--> src/iter.rs:446:5
|
446 | fn select(self, selectors: &str) -> Result<Select<Elements<Self>>, ()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: use a custom `Error` type instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
Check warning on line 165 in src/iter.rs
github-actions / clippy
this returns a `Result<_, ()>`
warning: this returns a `Result<_, ()>`
--> src/iter.rs:165:5
|
165 | pub fn select_first(&self, selectors: &str) -> Result<NodeDataRef<ElementData>, ()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: use a custom `Error` type instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
Check warning on line 165 in src/iter.rs
github-actions / clippy
this returns a `Result<_, ()>`
warning: this returns a `Result<_, ()>`
--> src/iter.rs:165:5
|
165 | pub fn select_first(&self, selectors: &str) -> Result<NodeDataRef<ElementData>, ()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: use a custom `Error` type instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
Check warning on line 159 in src/iter.rs
github-actions / clippy
this returns a `Result<_, ()>`
warning: this returns a `Result<_, ()>`
--> src/iter.rs:159:5
|
159 | pub fn select(&self, selectors: &str) -> Result<Select<Elements<Descendants>>, ()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: use a custom `Error` type instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
= note: `#[warn(clippy::result_unit_err)]` on by default
Check warning on line 159 in src/iter.rs
github-actions / clippy
this returns a `Result<_, ()>`
warning: this returns a `Result<_, ()>`
--> src/iter.rs:159:5
|
159 | pub fn select(&self, selectors: &str) -> Result<Select<Elements<Descendants>>, ()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: use a custom `Error` type instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
= note: `#[warn(clippy::result_unit_err)]` on by default