File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ impl AclEntry {
299
299
pub fn new ( fab_idx : u8 , privilege : Privilege , auth_mode : AuthMode ) -> Self {
300
300
const INIT_SUBJECTS : Option < u64 > = None ;
301
301
const INIT_TARGETS : Option < Target > = None ;
302
- let privilege = privilege ;
302
+
303
303
Self {
304
304
fab_idx : Some ( fab_idx) ,
305
305
privilege,
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ impl<'a> Case<'a> {
90
90
async fn handle_casesigma3 (
91
91
& mut self ,
92
92
exchange : & mut Exchange < ' _ > ,
93
- rx : & mut Packet < ' _ > ,
93
+ rx : & Packet < ' _ > ,
94
94
tx : & mut Packet < ' _ > ,
95
95
case_session : & mut CaseSession ,
96
96
) -> Result < ( ) , Error > {
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ impl<'a> Pake<'a> {
158
158
async fn handle_pasepake3 (
159
159
& mut self ,
160
160
exchange : & mut Exchange < ' _ > ,
161
- rx : & mut Packet < ' _ > ,
161
+ rx : & Packet < ' _ > ,
162
162
tx : & mut Packet < ' _ > ,
163
163
mdns : & dyn Mdns ,
164
164
spake2p : & mut Spake2P ,
Original file line number Diff line number Diff line change @@ -90,6 +90,9 @@ impl<'a> ExchangeCtr<'a> {
90
90
self . exchange . id ( )
91
91
}
92
92
93
+ #[ allow( clippy:: all) ]
94
+ // Should be #[allow(clippy::needless_pass_by_ref_mut)], but this is only in 1.73 which is not released yet
95
+ // rx is actually modified, but via an unsafe `*mut Packet<'static>` and apparently Clippy can't see this
93
96
pub async fn get ( mut self , rx : & mut Packet < ' _ > ) -> Result < Exchange < ' a > , Error > {
94
97
let construction_notification = self . construction_notification ;
95
98
You can’t perform that action at this time.
0 commit comments