File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed
foundationdb-bench/src/bin
foundationdb-bindingtester/src Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ impl Bench {
61
61
let counter = counter. clone ( ) ;
62
62
let b = self . clone ( ) ;
63
63
let handle = std:: thread:: spawn ( move || {
64
- futures:: executor:: block_on ( b. clone ( ) . run_range ( range, counter) )
64
+ futures:: executor:: block_on ( b. run_range ( range, counter) )
65
65
} ) ;
66
66
handles. push ( handle) ;
67
67
Original file line number Diff line number Diff line change @@ -412,7 +412,7 @@ impl TransactionState {
412
412
S :: Transaction ( ref mut tr) => tr,
413
413
S :: TransactionCancelled ( ref mut tr) => unsafe {
414
414
// rust binding prevent accessing cancelled transaction
415
- std :: mem :: transmute ( tr)
415
+ & mut * ( tr as * mut TransactionCancelled as * mut Transaction )
416
416
} ,
417
417
_ => panic ! ( "transaction is owned by a future that is still not done" ) ,
418
418
}
Original file line number Diff line number Diff line change @@ -224,6 +224,8 @@ pub trait DatabaseTransact: Sized {
224
224
fn transact ( self , trx : Transaction ) -> Self :: Future ;
225
225
}
226
226
227
+ #[ allow( clippy:: needless_lifetimes) ]
228
+ #[ allow( clippy:: type_complexity) ]
227
229
mod boxed {
228
230
use super :: * ;
229
231
@@ -275,6 +277,8 @@ mod boxed {
275
277
}
276
278
}
277
279
280
+ #[ allow( clippy:: needless_lifetimes) ]
281
+ #[ allow( clippy:: type_complexity) ]
278
282
mod boxed_local {
279
283
use super :: * ;
280
284
Original file line number Diff line number Diff line change @@ -343,6 +343,7 @@ pub struct FdbValuesIter {
343
343
impl Iterator for FdbValuesIter {
344
344
type Item = FdbValue ;
345
345
fn next ( & mut self ) -> Option < Self :: Item > {
346
+ #[ allow( clippy:: iter_nth_zero) ]
346
347
self . nth ( 0 )
347
348
}
348
349
You can’t perform that action at this time.
0 commit comments