From 19946bde2f691f26f8e6623a5e08b101ca9309dc Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Sun, 3 Aug 2025 07:20:01 -0400 Subject: Fix clippy warnings --- src/host.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/host.rs b/src/host.rs index e8325a7..f301711 100644 --- a/src/host.rs +++ b/src/host.rs @@ -121,7 +121,7 @@ impl Display for Memory { /// Define an alias for `name` that maps to a memory block named `placement`. fn region_alias(output: &mut dyn Write, name: &str, placement: Memory) -> io::Result<()> { - writeln!(output, "REGION_ALIAS(\"REGION_{}\", {});", name, placement) + writeln!(output, "REGION_ALIAS(\"REGION_{name}\", {placement});") } #[derive(Debug, Clone, PartialEq, Eq)] @@ -664,7 +664,7 @@ impl RuntimeBuilder { fn prevent_flash(name: &str, memory: Memory) -> Result<(), String> { if memory == Memory::Flash { - Err(format!("Section '{}' cannot be placed in flash", name)) + Err(format!("Section '{name}' cannot be placed in flash")) } else { Ok(()) } @@ -771,8 +771,7 @@ fn write_ram_memory_map( ) -> io::Result<()> { writeln!( output, - "/* Memory map for '{:?}' that executes from RAM. */", - family, + "/* Memory map for '{family:?}' that executes from RAM. */", )?; writeln!(output, "MEMORY {{")?; write_flexram_memories(output, family, flexram_banks)?; -- cgit v1.2.3