1
Fork 0

Prettify rustc_session fmt with capturing args (nfc)

This commit is contained in:
Jubilee Young 2022-03-24 22:11:05 -07:00
parent 7941b3f147
commit de66e08957
8 changed files with 64 additions and 86 deletions

View file

@ -345,14 +345,13 @@ fn build_options<O: Default>(
Some(value) => early_error(
error_format,
&format!(
"incorrect value `{}` for {} option `{}` - {} was expected",
value, outputname, key, type_desc
"incorrect value `{value}` for {outputname} option `{key}` - {type_desc} was expected"
),
),
}
}
}
None => early_error(error_format, &format!("unknown {} option: `{}`", outputname, key)),
None => early_error(error_format, &format!("unknown {outputname} option: `{key}`")),
}
}
return op;