Use to_string() instead of format!("{}", ...).
This commit is contained in:
@@ -59,7 +59,7 @@ pub fn parse_sets_and_triple(
|
||||
if let Some(triple_name) = words.next() {
|
||||
let triple = match Triple::from_str(triple_name) {
|
||||
Ok(triple) => triple,
|
||||
Err(parse_error) => return Err(format!("{}", parse_error)),
|
||||
Err(parse_error) => return Err(parse_error.to_string()),
|
||||
};
|
||||
let mut isa_builder = isa::lookup(triple).map_err(|err| match err {
|
||||
isa::LookupError::SupportDisabled => {
|
||||
|
||||
Reference in New Issue
Block a user