1
Fork 0

fix clippy::useless_format

This commit is contained in:
Matthias Krüger 2023-07-23 11:14:52 +02:00
parent adf759bf6a
commit b594798ae3
6 changed files with 12 additions and 16 deletions

View file

@ -352,7 +352,7 @@ fn emit_orphan_check_error<'tcx>(
let this = |name: &str| {
if !trait_ref.def_id.is_local() && !is_target_ty {
msg("this", &format!(" because this is a foreign trait"))
msg("this", " because this is a foreign trait")
} else {
msg("this", &format!(" because {name} are always foreign"))
}