We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TypeAliasPart::get
1 parent e88e854 commit a7baf4bCopy full SHA for a7baf4b
src/librustdoc/html/render/write_shared.rs
@@ -653,7 +653,7 @@ impl TypeAliasPart {
653
)
654
.to_string();
655
let type_alias_fqp = (*type_alias_fqp).iter().join("::");
656
- if Some(&text) == ret.last().map(|s: &AliasSerializableImpl| &s.text) {
+ if ret.last().map(|s: &AliasSerializableImpl| &s.text).is_some() {
657
ret.last_mut()
658
.expect("already established that ret.last() is Some()")
659
.aliases
0 commit comments