Skip to content

Merge branch 'nightly' into release/nightly/bin/ndns/2.90.0-n0.8 #242

Merge branch 'nightly' into release/nightly/bin/ndns/2.90.0-n0.8

Merge branch 'nightly' into release/nightly/bin/ndns/2.90.0-n0.8 #242

GitHub Actions / clippy succeeded Oct 10, 2024 in 1s

clippy

1 warning

Details

Results

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

Versions

  • rustc 1.81.0 (eeb90cda1 2024-09-04)
  • cargo 1.81.0 (2dbb1af80 2024-08-20)
  • clippy 0.1.81 (eeb90cd 2024-09-04)

Annotations

Check warning on line 52 in bin/nanocl/src/config.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

match can be simplified with `.unwrap_or_default()`

warning: match can be simplified with `.unwrap_or_default()`
  --> bin/nanocl/src/config.rs:49:5
   |
49 | /     match serde_yaml::from_str::<UserConfig>(&s) {
50 | |       Ok(config) => config,
51 | |       Err(_) => UserConfig::default(),
52 | |     }
   | |_____^ help: replace it with: `serde_yaml::from_str::<UserConfig>(&s).unwrap_or_default()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default
   = note: `#[warn(clippy::manual_unwrap_or_default)]` on by default