Remove unnecessary sigils around Ident::as_str()
calls.
This commit is contained in:
parent
056d48a2c9
commit
b1c934ebb8
31 changed files with 41 additions and 42 deletions
|
@ -1922,7 +1922,7 @@ enum VariantInfo<'a, 'tcx> {
|
|||
impl<'tcx> VariantInfo<'_, 'tcx> {
|
||||
fn map_struct_name<R>(&self, f: impl FnOnce(&str) -> R) -> R {
|
||||
match self {
|
||||
VariantInfo::Adt(variant) => f(&variant.ident.as_str()),
|
||||
VariantInfo::Adt(variant) => f(variant.ident.as_str()),
|
||||
VariantInfo::Generator { variant_index, .. } => {
|
||||
f(&GeneratorSubsts::variant_name(*variant_index))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue