Appease clippy
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user