fix: whitespaces inside quoted values should not be trimeed #64
GitHub Actions / clippy-ubuntu-latest
succeeded
Dec 20, 2024 in 0s
clippy-ubuntu-latest
2 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 2 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.85.0-nightly (9e136a30a 2024-12-19)
- cargo 1.85.0-nightly (99dff6d77 2024-12-18)
- clippy 0.1.85 (9e136a30a9 2024-12-19)
Annotations
Check warning on line 1515 in src/lib.rs
github-actions / clippy-ubuntu-latest
this manual char comparison can be written more succinctly
warning: this manual char comparison can be written more succinctly
--> src/lib.rs:1515:45
|
1515 | let tr = s.trim_end_matches(|c| c == ' ' || c == '\t');
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using an array of `char`: `[' ', '\t']`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_pattern_char_comparison
= note: `#[warn(clippy::manual_pattern_char_comparison)]` on by default
Check warning on line 1507 in src/lib.rs
github-actions / clippy-ubuntu-latest
this `match` expression can be replaced with `?`
warning: this `match` expression can be replaced with `?`
--> src/lib.rs:1504:29
|
1504 | let mut s = match self.parse_str_until(&[Some('\r'), Some('\n')], cfg!(feature = "inline-comment")) {
| _____________________________^
1505 | | Ok(r) => r,
1506 | | Err(err) => return Err(err)
1507 | | };
| |_________________^ help: try instead: `self.parse_str_until(&[Some('\r'), Some('\n')], cfg!(feature = "inline-comment"))?`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
= note: `#[warn(clippy::question_mark)]` on by default
Loading