This check has been archived and is scheduled for deletion.
Learn more about checks retention
GitHub Actions / clippy
succeeded
Jul 24, 2023 in 0s
clippy
3 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 3 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.71.0 (8ede3aae2 2023-07-12)
- cargo 1.71.0 (cfd3bbd8f 2023-06-08)
- clippy 0.1.71 (8ede3aa 2023-07-12)
Annotations
Check warning on line 103 in src/main.rs
github-actions / clippy
single-character string constant used as pattern
warning: single-character string constant used as pattern
--> src/main.rs:103:94
|
103 | let split: Vec<String> = std::env::var("ENABLE_MODULES").unwrap_or("".to_string()).split(",").map(|s| s.to_string()).collect();
| ^^^ help: try using a `char` instead: `','`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
Check warning on line 102 in src/docker/mod.rs
github-actions / clippy
casting integer literal to `f64` is unnecessary
warning: casting integer literal to `f64` is unnecessary
--> src/docker/mod.rs:102:166
|
102 | ...cpu_stats.online_cpus.unwrap_or_default() as f64 * 100 as f64,
| ^^^^^^^^^^ help: try: `100_f64`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
Check warning on line 68 in src/docker/mod.rs
github-actions / clippy
single-character string constant used as pattern
warning: single-character string constant used as pattern
--> src/docker/mod.rs:68:87
|
68 | let container_name = &container.names.as_ref().unwrap()[0].trim_start_matches("/");
| ^^^ help: try using a `char` instead: `'/'`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
= note: `#[warn(clippy::single_char_pattern)]` on by default
Loading