add safeguard to prevent moss from eating your current operating system #1605
Annotations
1 warning
Run clippy:
moss/src/cli/mod.rs#L111
[clippy] reported by reviewdog 🐶
warning: useless conversion to the same type: `&str`
--> moss/src/cli/mod.rs:111:32
|
111 | is_host_serpent_os.then(|| "/".into())
| ^^^^^^^^^^ help: consider removing `.into()`: `"/"`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
Raw Output:
moss/src/cli/mod.rs:111:32:w:warning: useless conversion to the same type: `&str`
--> moss/src/cli/mod.rs:111:32
|
111 | is_host_serpent_os.then(|| "/".into())
| ^^^^^^^^^^ help: consider removing `.into()`: `"/"`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
__END__
|
Loading