1
Fork 0
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:
Roy Ivy III 2020-06-14 13:56:30 -05:00
parent 2c5d154b67
commit 39e3c57198

View file

@ -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);
}