Skip to content

chore: Fix typos throughout code base #100

chore: Fix typos throughout code base

chore: Fix typos throughout code base #100

GitHub Actions / clippy failed Nov 19, 2024 in 0s

clippy

1 error

Details

Results

Message level Amount
Internal compiler error 0
Error 1
Warning 0
Note 0
Help 0

Versions

  • rustc 1.82.0 (f6e511eec 2024-10-15)
  • cargo 1.82.0 (8f40fc59f 2024-08-21)
  • clippy 0.1.82 (f6e511e 2024-10-15)

Annotations

Check failure on line 200 in src/setup/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

you seem to be trying to use `match` for an equality check. Consider using `if`

error: you seem to be trying to use `match` for an equality check. Consider using `if`
   --> src/setup/mod.rs:189:5
    |
189 | /     match CONF.get_bool("verbose")? {
190 | |         true => {
191 | |             for file in files.iter() {
192 | |                 let path = file.clone().into_os_string().into_string().unwrap();
...   |
199 | |         false => {}
200 | |     }
    | |_____^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match
    = note: `-D clippy::single-match` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::single_match)]`
help: try
    |
189 ~     if CONF.get_bool("verbose")? == true {
190 +         for file in files.iter() {
191 +             let path = file.clone().into_os_string().into_string().unwrap();
192 +             let text = LocalText::new("setup-warp-time-file")
193 +                 .arg("path", style(path).white().bold())
194 +                 .fmt();
195 ~             eprintln!("{} {}", style("┠┄").cyan(), text);
196 +         }
197 +     }
    |