Appease clippy

This commit is contained in:
2025-07-13 00:46:08 -04:00
parent b6b0a8c22b
commit 065f68e9a8
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ impl RegisterInfo {
pub fn to_description(&self) -> String {
let mut string = format!("name:{}", self.name);
if let Some(alt) = self.alt_name {
string.push_str(&format!(";alt-name:{}", alt));
string.push_str(&format!(";alt-name:{alt}"));
}
string.push_str(&format!(
";bitsize:32;offset:{};encoding:uint;format:hex;set:{};dwarf:{}",
@@ -21,7 +21,7 @@ impl RegisterInfo {
self.dwarf
));
if let Some(generic) = self.generic {
string.push_str(&format!(";generic:{}", generic));
string.push_str(&format!(";generic:{generic}"));
}
string
}