Skip to content

Commit

Permalink
Apply clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Jul 19, 2024
1 parent f44fe7f commit b02f250
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rs/mapfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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, &section_type);
Expand Down

0 comments on commit b02f250

Please sign in to comment.