File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1+ use std:: cmp;
12use std:: fmt:: { Debug , Display } ;
23use std:: pin:: Pin ;
34use std:: str:: FromStr ;
45use std:: sync:: Arc ;
56use std:: time:: Duration ;
6- use std:: cmp;
77
88use bytes:: BytesMut ;
99use color_eyre:: eyre;
@@ -888,8 +888,11 @@ impl<S: MqttSocket> Connection<S> {
888888 self . send ( Packet :: UnsubAck (
889889 UnsubAck {
890890 pkid : unsub. pkid ,
891- reasons : std:: iter:: repeat_n ( UnsubAckReason :: PacketIdentifierInUse , unsub. filters . len ( ) )
892- . collect ( ) ,
891+ reasons : std:: iter:: repeat_n (
892+ UnsubAckReason :: PacketIdentifierInUse ,
893+ unsub. filters . len ( ) ,
894+ )
895+ . collect ( ) ,
893896 } ,
894897 None ,
895898 ) )
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ pub(super) struct NodeLeaf<T> {
1919
2020impl < T > NodeLeaf < T > {
2121 pub ( super ) fn all ( & self , f : & mut impl FnMut ( & T ) -> bool ) -> bool {
22- self . exact_val . as_ref ( ) . is_none_or ( & mut * f)
23- && self . descendant_val . as_ref ( ) . is_none_or ( f)
22+ self . exact_val . as_ref ( ) . is_none_or ( & mut * f) && self . descendant_val . as_ref ( ) . is_none_or ( f)
2423 }
2524
2625 fn is_empty ( & self ) -> bool {
You can’t perform that action at this time.
0 commit comments