Replace use of a syn From impl

The From impls may be going away in the next version of syn.
This commit is contained in:
David Tolnay 2024-05-14 23:02:27 -07:00
parent 3202a6858a
commit 48cc2a6327
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -84,7 +84,7 @@ impl ReplaceReceiver<'_> {
self.visit_type_mut_impl(ty);
return;
};
*ty = self.self_ty(span).into();
*ty = Type::Path(self.self_ty(span));
}
// `Self::Assoc` -> `<Receiver>::Assoc`