fix clippy::uninlined_format_args
This commit is contained in:
@@ -3262,14 +3262,14 @@ where
|
||||
let disc = match DiscriminantT::from_str(id.to_string().as_str()) {
|
||||
Ok(disc) => disc,
|
||||
Err(_) => {
|
||||
panic!("can't generate discriminant {}", id);
|
||||
panic!("can't generate discriminant {id}");
|
||||
}
|
||||
};
|
||||
|
||||
match disc.get_str(key) {
|
||||
Some(prop) => prop,
|
||||
None => {
|
||||
panic!("can't find property {} of discriminant {:?}", key, disc);
|
||||
panic!("can't find property {key} of discriminant {disc:?}");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3387,7 +3387,7 @@ impl InstructionData {
|
||||
|
||||
(name, arity, CountableInference::HasDefault)
|
||||
} else {
|
||||
panic!("type ID is: {}", id);
|
||||
panic!("type ID is: {id}");
|
||||
};
|
||||
|
||||
let v_ident = variant
|
||||
|
||||
@@ -126,14 +126,14 @@ pub fn index_static_strings(instruction_rs_path: &std::path::Path) -> TokenStrea
|
||||
match file.read_to_string(&mut src) {
|
||||
Ok(_) => {}
|
||||
Err(e) => {
|
||||
panic!("error reading file: {:?}", e);
|
||||
panic!("error reading file: {e:?}");
|
||||
}
|
||||
}
|
||||
|
||||
let syntax = match syn::parse_file(&src) {
|
||||
Ok(s) => s,
|
||||
Err(e) => {
|
||||
panic!("parse error: {} in file {:?}", e, path);
|
||||
panic!("parse error: {e} in file {path:?}");
|
||||
}
|
||||
};
|
||||
Ok(syntax)
|
||||
|
||||
Reference in New Issue
Block a user