CI #2002
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
ci.yaml
on: schedule
Build & Test Project
2m 30s
Annotations
4 warnings
|
Build & Test Project:
boulder/src/build.rs#L333
[clippy] reported by reviewdog 🐶
warning: this method chain can be written more clearly with `if .. else ..`
--> boulder/src/build.rs:333:19
|
333 | let pgo = is_pgo.then_some("│").unwrap_or_default().dim();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `if is_pgo { "│" } else { Default::default() }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#obfuscated_if_else
= note: `#[warn(clippy::obfuscated_if_else)]` on by default
Raw Output:
boulder/src/build.rs:333:19:w:warning: this method chain can be written more clearly with `if .. else ..`
--> boulder/src/build.rs:333:19
|
333 | let pgo = is_pgo.then_some("│").unwrap_or_default().dim();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `if is_pgo { "│" } else { Default::default() }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#obfuscated_if_else
= note: `#[warn(clippy::obfuscated_if_else)]` on by default
__END__
|
|
Build & Test Project:
moss/src/cli/search_file.rs#L45
[clippy] reported by reviewdog 🐶
warning: variables can be used directly in the `format!` string
--> moss/src/cli/search_file.rs:45:21
|
45 | println!("/usr/{} from {}", file, name.to_string().bold());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: requested on the command line with `-W clippy::uninlined-format-args`
help: change this to
|
45 - println!("/usr/{} from {}", file, name.to_string().bold());
45 + println!("/usr/{file} from {}", name.to_string().bold());
|
Raw Output:
moss/src/cli/search_file.rs:45:21:w:warning: variables can be used directly in the `format!` string
--> moss/src/cli/search_file.rs:45:21
|
45 | println!("/usr/{} from {}", file, name.to_string().bold());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: requested on the command line with `-W clippy::uninlined-format-args`
help: change this to
|
45 - println!("/usr/{} from {}", file, name.to_string().bold());
45 + println!("/usr/{file} from {}", name.to_string().bold());
|
__END__
|
|
Build & Test Project:
moss/src/cli/search_file.rs#L5
[clippy] reported by reviewdog 🐶
warning: unused imports: `Write` and `self`
--> moss/src/cli/search_file.rs:5:15
|
5 | use std::io::{self, Write};
| ^^^^ ^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Raw Output:
moss/src/cli/search_file.rs:5:15:w:warning: unused imports: `Write` and `self`
--> moss/src/cli/search_file.rs:5:15
|
5 | use std::io::{self, Write};
| ^^^^ ^^^^^
|
= note: `#[warn(unused_imports)]` on by default
__END__
|
|
Build & Test Project:
crates/stone/src/write.rs#L307
[clippy] reported by reviewdog 🐶
warning: this method chain can be written more clearly with `if .. else ..`
--> crates/stone/src/write.rs:307:47
|
307 | num_payloads: payloads.len() as u16 + content.is_some().then_some(1).unwrap_or_default(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `if content.is_some() { 1 } else { Default::default() }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#obfuscated_if_else
= note: `#[warn(clippy::obfuscated_if_else)]` on by default
Raw Output:
crates/stone/src/write.rs:307:47:w:warning: this method chain can be written more clearly with `if .. else ..`
--> crates/stone/src/write.rs:307:47
|
307 | num_payloads: payloads.len() as u16 + content.is_some().then_some(1).unwrap_or_default(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `if content.is_some() { 1 } else { Default::default() }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#obfuscated_if_else
= note: `#[warn(clippy::obfuscated_if_else)]` on by default
__END__
|