fix clippy::useless_format
This commit is contained in:
parent
adf759bf6a
commit
b594798ae3
6 changed files with 12 additions and 16 deletions
|
@ -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"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue