From 3d772470b09c4a8b78f526c3fd566c0aae1ab94f Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sun, 17 Aug 2025 07:41:39 +0200 Subject: Apply suggested style fixes from clippy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- lib/xixanta/src/mapping.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/xixanta/src/mapping.rs') 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, 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" )); } -- cgit v1.2.3