use push(char) instead of push_str(&str) to add single chars to strings
clippy::single-char-push-str
This commit is contained in:
@@ -438,7 +438,7 @@ impl<'tcx> SaveContext<'tcx> {
|
||||
.next()
|
||||
.map(|item| item.def_id);
|
||||
}
|
||||
qualname.push_str(">");
|
||||
qualname.push('>');
|
||||
|
||||
(qualname, trait_id, decl_id, docs, attrs)
|
||||
}
|
||||
|
||||
@@ -497,7 +497,7 @@ impl<'hir> Sig for hir::Item<'hir> {
|
||||
sig.text.push_str(&bounds_to_string(bounds));
|
||||
}
|
||||
// FIXME where clause
|
||||
sig.text.push_str(";");
|
||||
sig.text.push(';');
|
||||
|
||||
Ok(sig)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user