1
Fork 0

rustdoc: Remove top-level wrappers for ImplKind methods

The `ImplKind` methods can just be used directly instead.
This commit is contained in:
Noah Lev 2021-11-07 18:26:37 -08:00
parent 7c7bf451eb
commit b5817fada2
6 changed files with 8 additions and 20 deletions

View file

@ -999,7 +999,7 @@ impl clean::Impl {
write!(f, " for ")?;
}
if let Some(ref ty) = self.blanket_impl_ty() {
if let Some(ref ty) = self.kind.as_blanket_ty() {
fmt_type(ty, f, use_absolute, cx)?;
} else {
fmt_type(&self.for_, f, use_absolute, cx)?;