Skip to content

Commit db6e5d5

Browse files
Use more autoderef in libsyntax_ext
1 parent 2b69c98 commit db6e5d5

File tree

1 file changed

+2
-2
lines changed
  • src/libsyntax_ext/deriving/generic

1 file changed

+2
-2
lines changed

src/libsyntax_ext/deriving/generic/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ impl<'a> TraitDef<'a> {
553553

554554
let mut processed_field_types = HashSet::new();
555555
for field_ty in field_tys {
556-
let tys = find_type_parameters(&*field_ty, &ty_param_names);
556+
let tys = find_type_parameters(&field_ty, &ty_param_names);
557557

558558
for ty in tys {
559559
// if we have already handled this type, skip it
@@ -617,7 +617,7 @@ impl<'a> TraitDef<'a> {
617617
// Just mark it now since we know that it'll end up used downstream
618618
attr::mark_used(&attr);
619619
let opt_trait_ref = Some(trait_ref);
620-
let ident = ast_util::impl_pretty_name(&opt_trait_ref, Some(&*self_type));
620+
let ident = ast_util::impl_pretty_name(&opt_trait_ref, Some(&self_type));
621621
let unused_qual = cx.attribute(
622622
self.span,
623623
cx.meta_list(self.span,

0 commit comments

Comments
 (0)