diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-08-17 07:41:39 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-08-17 07:41:39 +0200 |
| commit | 3d772470b09c4a8b78f526c3fd566c0aae1ab94f (patch) | |
| tree | 4340b241bff20cb43931ba2243d02b79c79f01e5 /lib/xixanta/src/mapping.rs | |
| parent | 6993a164dd57c57be9f79190824b774b162272eb (diff) | |
| download | tools.nes-3d772470b09c4a8b78f526c3fd566c0aae1ab94f.tar.gz tools.nes-3d772470b09c4a8b78f526c3fd566c0aae1ab94f.zip | |
Apply suggested style fixes from clippy
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'lib/xixanta/src/mapping.rs')
| -rw-r--r-- | lib/xixanta/src/mapping.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/xixanta/src/mapping.rs b/lib/xixanta/src/mapping.rs index 6a439d3..2270ad3 100644 --- a/lib/xixanta/src/mapping.rs +++ b/lib/xixanta/src/mapping.rs @@ -111,7 +111,7 @@ pub fn get_mapping_configuration(name: &str) -> Result<Vec<Mapping>, String> { parse_cfg_file(contents.as_str())? } } - Err(_) => return Err(format!("could not read '{}'", name)), + Err(_) => return Err(format!("could not read '{name}'")), } } else { let text = match name.to_lowercase().as_str() { @@ -190,14 +190,12 @@ pub fn validate(mappings: &[Mapping]) -> Result<(), String> { if header_prg_rom_size < prg_rom_len { return Err(format!( - "PRG ROM size is expected to by {} bytes long, but a total of {} bytes were evaluated", - header_prg_rom_size, prg_rom_len + "PRG ROM size is expected to by {header_prg_rom_size} bytes long, but a total of {prg_rom_len} bytes were evaluated" )); } if header_chr_rom_size < chr_rom_len { return Err(format!( - "CHR ROM size is expected to by {} bytes long, but a total of {} bytes were evaluated", - header_chr_rom_size, chr_rom_len + "CHR ROM size is expected to by {header_chr_rom_size} bytes long, but a total of {chr_rom_len} bytes were evaluated" )); } |
