Task #61767 - added.err
back to task #61767download
Error: CLIPPY_WARNING:
src/lib.rs:256:59: warning: use of `unwrap_or` to construct default value
# |
# 256 | let name = loname::Name::from_path(&backing_file).unwrap_or(Name::default());
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
# = note: `-D clippy::unwrap-or-default` implied by `-D clippy::all`
# = help: to override `-D clippy::all` add `#[allow(clippy::unwrap_or_default)]`
Error: CLIPPY_WARNING:
src/lib.rs:257:29: warning: using `clone` on type `[u8; 64]` which implements the `Copy` trait
# |
# 257 | info.lo_file_name = name.0.clone();
# | ^^^^^^^^^^^^^^ help: try removing the `clone` call: `name.0`
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
# = note: `-D clippy::clone-on-copy` implied by `-D clippy::all`
# = help: to override `-D clippy::all` add `#[allow(clippy::clone_on_copy)]`
Error: CLIPPY_WARNING:
src/loname.rs:30:30: warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice`
# |
# 30 | for (idx, byte) in s.into_iter().enumerate() {
# | ^^^^^^^^^ help: call directly: `iter`
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
# = note: `-D clippy::into-iter-on-ref` implied by `-D clippy::all`
# = help: to override `-D clippy::all` add `#[allow(clippy::into_iter_on_ref)]`
Error: CLIPPY_WARNING:
src/loname.rs:36:1: warning: direct implementation of `ToString`
# |
# 36 | / impl ToString for Name {
# 37 | | fn to_string(&self) -> String {
# 38 | | self.0
# 39 | | .iter()
# ... |
# 50 | | }
# | |_^
# |
# = help: prefer implementing `Display` instead
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
# = note: `-D clippy::to-string-trait-impl` implied by `-D clippy::all`
# = help: to override `-D clippy::all` add `#[allow(clippy::to_string_trait_impl)]`