1
Fork 0

clippy::perf fixes

This commit is contained in:
Matthias Krüger 2022-07-20 11:48:11 +02:00
parent 03d488b48a
commit 611bbcb044
10 changed files with 17 additions and 21 deletions

View file

@ -1754,7 +1754,6 @@ impl SearchInterfaceForPrivateItemsVisitor<'_> {
|| self.in_assoc_ty
|| self.tcx.resolutions(()).has_pub_restricted
{
let descr = descr.to_string();
let vis_span =
self.tcx.sess.source_map().guess_head_span(self.tcx.def_span(def_id));
if kind == "trait" {