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/object.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/object.rs')
| -rw-r--r-- | lib/xixanta/src/object.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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}'") } } } |
