@@ -28,6 +28,7 @@ pub fn read_auth_fragment_v1<H: HashSer, R: Read>(
28
28
Ok ( ( position, alts_observed, values) )
29
29
}
30
30
31
+ #[ allow( clippy:: needless_borrows_for_generic_args) ]
31
32
pub fn read_bridge_v1 < H : HashSer + Ord + Clone , R : Read > (
32
33
mut reader : R ,
33
34
) -> io:: Result < MerkleBridge < H > > {
@@ -93,6 +94,7 @@ pub fn read_bridge_v1<H: HashSer + Ord + Clone, R: Read>(
93
94
) )
94
95
}
95
96
97
+ #[ allow( clippy:: needless_borrows_for_generic_args) ]
96
98
pub fn read_bridge_v2 < H : HashSer + Ord + Clone , R : Read > (
97
99
mut reader : R ,
98
100
) -> io:: Result < MerkleBridge < H > > {
@@ -138,6 +140,7 @@ pub fn read_bridge<H: HashSer + Ord + Clone, R: Read>(
138
140
}
139
141
}
140
142
143
+ #[ allow( clippy:: needless_borrows_for_generic_args) ]
141
144
pub fn write_bridge_v2 < H : HashSer + Ord , W : Write > (
142
145
mut writer : W ,
143
146
bridge : & MerkleBridge < H > ,
@@ -181,6 +184,7 @@ pub fn write_bridge<H: HashSer + Ord, W: Write>(
181
184
/// ordinary circumstances, the checkpoint ID will be the block height at which the checkpoint was
182
185
/// created, but since we don't have any source for this information, we require the caller to
183
186
/// provide it; any unique identifier will do so long as the identifiers are ordered correctly.
187
+ #[ allow( clippy:: needless_borrows_for_generic_args) ]
184
188
pub fn read_checkpoint_v2 < R : Read > (
185
189
mut reader : R ,
186
190
checkpoint_id : u32 ,
@@ -248,6 +252,7 @@ pub fn write_checkpoint_v3<W: Write>(
248
252
/// such data the returned identifiers will *not* correspond to block heights. As such, checkpoint
249
253
/// ids should always be treated as opaque, totally ordered identifiers without additional
250
254
/// semantics.
255
+ #[ allow( clippy:: needless_borrows_for_generic_args) ]
251
256
#[ allow( clippy:: redundant_closure) ]
252
257
pub fn read_tree < H : Hashable + HashSer + Ord + Clone , const DEPTH : u8 , R : Read > (
253
258
mut reader : R ,
@@ -306,6 +311,7 @@ pub fn read_tree<H: Hashable + HashSer + Ord + Clone, const DEPTH: u8, R: Read>(
306
311
} )
307
312
}
308
313
314
+ #[ allow( clippy:: needless_borrows_for_generic_args) ]
309
315
pub fn write_tree < H : Hashable + HashSer + Ord , const DEPTH : u8 , W : Write > (
310
316
mut writer : W ,
311
317
tree : & BridgeTree < H , u32 , DEPTH > ,
0 commit comments