mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
fix cargo clippy
complaint (clone_on_copy)
This commit is contained in:
parent
2c5d154b67
commit
39e3c57198
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ pub fn arrnum_to_str(src: &[u8], radix_def_dest: &dyn RadixDef) -> String {
|
|||
let mut str_out = String::new();
|
||||
for u in src.iter() {
|
||||
#[allow(clippy::single_match)]
|
||||
match radix_def_dest.from_u8(u.clone()) {
|
||||
match radix_def_dest.from_u8(*u) {
|
||||
Some(c) => {
|
||||
str_out.push(c);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue