Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 86c0784

Browse files
committed
Simplify the "is some" test in TypeAliasPart::get.
The comparison against `text` seems to be unnecessary.
1 parent e3892a4 commit 86c0784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/render/write_shared.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ impl TypeAliasPart {
653653
)
654654
.to_string();
655655
let type_alias_fqp = (*type_alias_fqp).iter().join("::");
656-
if Some(&text) == ret.last().map(|s: &AliasSerializableImpl| &s.text) {
656+
if ret.last().map(|s: &AliasSerializableImpl| &s.text).is_some() {
657657
ret.last_mut()
658658
.expect("already established that ret.last() is Some()")
659659
.aliases

0 commit comments

Comments
 (0)