File tree 1 file changed +3
-6
lines changed
src/librustdoc/html/render 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -611,7 +611,7 @@ impl TypeAliasPart {
611
611
. impl_
612
612
. values ( )
613
613
. flat_map ( |AliasedTypeImpl { impl_, type_aliases } | {
614
- let mut ret = Vec :: new ( ) ;
614
+ let mut ret: Vec < AliasSerializableImpl > = Vec :: new ( ) ;
615
615
let trait_ = impl_
616
616
. inner_impl ( )
617
617
. trait_
@@ -624,11 +624,8 @@ impl TypeAliasPart {
624
624
cx. id_map . borrow_mut ( ) . clear ( ) ;
625
625
cx. deref_id_map . borrow_mut ( ) . clear ( ) ;
626
626
let type_alias_fqp = ( * type_alias_fqp) . iter ( ) . join ( "::" ) ;
627
- if ret. last ( ) . map ( |s : & AliasSerializableImpl | & s. text ) . is_some ( ) {
628
- ret. last_mut ( )
629
- . expect ( "already established that ret.last() is Some()" )
630
- . aliases
631
- . push ( type_alias_fqp) ;
627
+ if let Some ( last) = ret. last_mut ( ) {
628
+ last. aliases . push ( type_alias_fqp) ;
632
629
} else {
633
630
let target_did = impl_
634
631
. inner_impl ( )
You can’t perform that action at this time.
0 commit comments