@@ -661,19 +661,19 @@ impl Subscriptions {
661
661
}
662
662
} ) ;
663
663
self . change_subscriptions . retain_mut ( |sub| {
664
- if sub. sender . is_closed ( ) {
665
- info ! ( "Subscriber gone: removing subscription" ) ;
666
- false
667
- } else {
668
- match & sub. permissions . expired ( ) {
669
- Ok ( ( ) ) => true ,
670
- Err ( PermissionError :: Expired ) => {
671
- info ! ( "Token expired: removing subscription" ) ;
672
- false
673
- }
674
- Err ( err) => panic ! ( "Error: {:?}" , err) ,
664
+ if sub. sender . is_closed ( ) {
665
+ info ! ( "Subscriber gone: removing subscription" ) ;
666
+ false
667
+ } else {
668
+ match & sub. permissions . expired ( ) {
669
+ Ok ( ( ) ) => true ,
670
+ Err ( PermissionError :: Expired ) => {
671
+ info ! ( "Token expired: removing subscription" ) ;
672
+ false
675
673
}
674
+ Err ( err) => panic ! ( "Error: {:?}" , err) ,
676
675
}
676
+ }
677
677
} ) ;
678
678
}
679
679
}
@@ -744,8 +744,7 @@ impl ChangeSubscription {
744
744
} ;
745
745
if notifications. updates . is_empty ( ) {
746
746
Ok ( ( ) )
747
- }
748
- else {
747
+ } else {
749
748
match & self . sender . send ( notifications) . await {
750
749
Ok ( ( ) ) => Ok ( ( ) ) ,
751
750
Err ( _) => Err ( NotificationError { } ) ,
@@ -786,8 +785,7 @@ impl ChangeSubscription {
786
785
}
787
786
notifications
788
787
} ;
789
- match & self . sender . send ( notifications) . await
790
- {
788
+ match & self . sender . send ( notifications) . await {
791
789
Ok ( ( ) ) => Ok ( ( ) ) ,
792
790
Err ( _) => Err ( NotificationError { } ) ,
793
791
}
0 commit comments