mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +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();
|
let mut str_out = String::new();
|
||||||
for u in src.iter() {
|
for u in src.iter() {
|
||||||
#[allow(clippy::single_match)]
|
#[allow(clippy::single_match)]
|
||||||
match radix_def_dest.from_u8(u.clone()) {
|
match radix_def_dest.from_u8(*u) {
|
||||||
Some(c) => {
|
Some(c) => {
|
||||||
str_out.push(c);
|
str_out.push(c);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue