Skip to content

chore: renamed to enabled_indented_mutiline_value (#138) #63

chore: renamed to enabled_indented_mutiline_value (#138)

chore: renamed to enabled_indented_mutiline_value (#138) #63

GitHub Actions / clippy-macos-latest succeeded Dec 20, 2024 in 0s

clippy-macos-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 1516 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy-macos-latest

this manual char comparison can be written more succinctly

warning: this manual char comparison can be written more succinctly
    --> src/lib.rs:1516:45
     |
1516 |                 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 1508 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy-macos-latest

this `match` expression can be replaced with `?`

warning: this `match` expression can be replaced with `?`
    --> src/lib.rs:1505:29
     |
1505 |                   let mut s = match self.parse_str_until(&[Some('\r'), Some('\n')], cfg!(feature = "inline-comment")) {
     |  _____________________________^
1506 | |                     Ok(r) => r,
1507 | |                     Err(err) => return Err(err)
1508 | |                 };
     | |_________________^ 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