boulder: Change recipe template to © AerynOS #584
Merged
Annotations
2 warnings
Run clippy:
boulder/src/build.rs#L334
[clippy] reported by reviewdog 🐶
warning: this method chain can be written more clearly with `if .. else ..`
--> boulder/src/build.rs:334:19
|
334 | 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:334:19:w:warning: this method chain can be written more clearly with `if .. else ..`
--> boulder/src/build.rs:334:19
|
334 | 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__
|
Run clippy:
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__
|
Loading