fix: release build error #41
GitHub Actions / clippy
succeeded
Apr 18, 2024 in 0s
clippy
2 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 2 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.79.0-nightly (becebb315 2024-04-17)
- cargo 1.79.0-nightly (6f06fe908 2024-04-16)
- clippy 0.1.79 (becebb3 2024-04-17)
Annotations
Check warning on line 118 in src/srun.rs
github-actions / clippy
assigning the result of `ToOwned::to_owned()` may be inefficient
warning: assigning the result of `ToOwned::to_owned()` may be inefficient
--> src/srun.rs:118:9
|
118 | self.name = name.to_owned();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `name.clone_into(&mut self.name)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
Check warning on line 114 in src/srun.rs
github-actions / clippy
assigning the result of `ToOwned::to_owned()` may be inefficient
warning: assigning the result of `ToOwned::to_owned()` may be inefficient
--> src/srun.rs:114:9
|
114 | self.os = os.to_owned();
| ^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `os.clone_into(&mut self.os)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
= note: `#[warn(clippy::assigning_clones)]` on by default
Loading