File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ impl Command {
423
423
. map ( |path| path. into_os_string ( ) . into_string ( ) . unwrap ( ) )
424
424
. collect ( )
425
425
} else {
426
- benches. into_iter ( ) . map ( Into :: into ) . collect ( )
426
+ benches. into_iter ( ) . collect ( )
427
427
} ;
428
428
let target_flag = if let Some ( target) = target {
429
429
let mut flag = OsString :: from ( "--target=" ) ;
Original file line number Diff line number Diff line change @@ -54,17 +54,17 @@ impl CpuAffinityMask {
54
54
let chunk = self . 0 [ start..] . first_chunk_mut :: < 4 > ( ) . unwrap ( ) ;
55
55
let offset = cpu % 32 ;
56
56
* chunk = match target. options . endian {
57
- Endian :: Little => ( u32:: from_le_bytes ( * chunk) | 1 << offset) . to_le_bytes ( ) ,
58
- Endian :: Big => ( u32:: from_be_bytes ( * chunk) | 1 << offset) . to_be_bytes ( ) ,
57
+ Endian :: Little => ( u32:: from_le_bytes ( * chunk) | ( 1 << offset) ) . to_le_bytes ( ) ,
58
+ Endian :: Big => ( u32:: from_be_bytes ( * chunk) | ( 1 << offset) ) . to_be_bytes ( ) ,
59
59
} ;
60
60
}
61
61
8 => {
62
62
let start = cpu / 64 * 8 ; // first byte of the correct u64
63
63
let chunk = self . 0 [ start..] . first_chunk_mut :: < 8 > ( ) . unwrap ( ) ;
64
64
let offset = cpu % 64 ;
65
65
* chunk = match target. options . endian {
66
- Endian :: Little => ( u64:: from_le_bytes ( * chunk) | 1 << offset) . to_le_bytes ( ) ,
67
- Endian :: Big => ( u64:: from_be_bytes ( * chunk) | 1 << offset) . to_be_bytes ( ) ,
66
+ Endian :: Little => ( u64:: from_le_bytes ( * chunk) | ( 1 << offset) ) . to_le_bytes ( ) ,
67
+ Endian :: Big => ( u64:: from_be_bytes ( * chunk) | ( 1 << offset) ) . to_be_bytes ( ) ,
68
68
} ;
69
69
}
70
70
other => bug ! ( "chunk size not supported: {other}" ) ,
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ impl Handle {
97
97
98
98
// packs the data into the lower `data_size` bits
99
99
// and packs the discriminant right above the data
100
- discriminant << data_size | data
100
+ ( discriminant << data_size) | data
101
101
}
102
102
103
103
fn new ( discriminant : u32 , data : u32 ) -> Option < Self > {
You can’t perform that action at this time.
0 commit comments