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/object.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/xixanta/src/object.rs') diff --git a/lib/xixanta/src/object.rs b/lib/xixanta/src/object.rs index a92f9fb..db7c51e 100644 --- a/lib/xixanta/src/object.rs +++ b/lib/xixanta/src/object.rs @@ -232,7 +232,7 @@ impl Context { } } }, - None => Err(format!("could not find scope '{}'", scope_name)), + None => Err(format!("could not find scope '{scope_name}'")), } } @@ -253,7 +253,7 @@ impl Context { // Avoid weird out of bound references for addresses. if addr > u16::MAX as usize { - return Err(format!("address {:x} is out of bounds", addr)); + return Err(format!("address {addr:x} is out of bounds")); } let addr_bytes = (addr as u16).to_le_bytes(); @@ -472,7 +472,7 @@ impl Context { // Returns a human-readable string representing the current context. fn to_human(&self) -> String { match self.stack.last() { - Some(n) => format!("'{}'", n), + Some(n) => format!("'{n}'"), None => "the global scope".to_string(), } } @@ -487,7 +487,7 @@ impl Context { // case. "the current scope".to_string() } else { - format!("'{}'", name) + format!("'{name}'") } } } -- cgit v1.2.3