1
Fork 0

Remove unnecessary sigils around Ident::as_str() calls.

This commit is contained in:
Nicholas Nethercote 2021-12-15 16:13:11 +11:00
parent 056d48a2c9
commit b1c934ebb8
31 changed files with 41 additions and 42 deletions

View file

@ -1185,7 +1185,7 @@ impl<'a> Resolver<'a> {
("", " from prelude")
} else if b.is_extern_crate()
&& !b.is_import()
&& self.session.opts.externs.get(&ident.as_str()).is_some()
&& self.session.opts.externs.get(ident.as_str()).is_some()
{
("", " passed with `--extern`")
} else if add_built_in {