From b02f2501f2f05cd1a2065698d8e5d55bf95481eb Mon Sep 17 00:00:00 2001 From: Angie Date: Thu, 18 Jul 2024 21:53:16 -0400 Subject: [PATCH] Apply clippy suggestions --- src/rs/mapfile.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rs/mapfile.rs b/src/rs/mapfile.rs index b55b85f..8d927a8 100644 --- a/src/rs/mapfile.rs +++ b/src/rs/mapfile.rs @@ -205,7 +205,7 @@ impl MapFile { name.push("__fill__"); filepath = prev_file.filepath.with_file_name(name); vram = prev_file.vram + prev_file.size; - section_type = prev_file.section_type.clone(); + section_type.clone_from(&prev_file.section_type); } current_segment.files_list.push(file::File::new_default( @@ -347,7 +347,7 @@ impl MapFile { name.push("__fill__"); filepath = prev_file.filepath.with_file_name(name); - section_type = prev_file.section_type.clone(); + section_type.clone_from(&prev_file.section_type); } let mut new_file = file::File::new_default(filepath, vram, size, §ion_type);