use same param name across methods
This commit is contained in:
parent
de69a3b7e5
commit
346a442110
2 changed files with 12 additions and 9 deletions
|
@ -2122,14 +2122,14 @@ fn item_trait(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
|
|||
write!(w, "<li><code>")?;
|
||||
// If there's already another implementor that has the same abbridged name, use the
|
||||
// full path, for example in `std::iter::ExactSizeIterator`
|
||||
let dissambiguate = if let clean::Type::ResolvedPath {
|
||||
let use_absolute = if let clean::Type::ResolvedPath {
|
||||
ref path, ..
|
||||
} = implementor.impl_.for_ {
|
||||
implementor_count[path.last_name()] > 1
|
||||
} else {
|
||||
false
|
||||
};
|
||||
fmt_impl_for_trait_page(&implementor.impl_, w, dissambiguate)?;
|
||||
fmt_impl_for_trait_page(&implementor.impl_, w, use_absolute)?;
|
||||
writeln!(w, "</code></li>")?;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue