Skip to content

Commit c34baac

Browse files
phip1611alyssais
authored andcommitted
build: fix warnings from latest nightly (1.91)
The underlying problem currently causes unrelated PRs to fail. This commit fixes that. Signed-off-by: Philipp Schuster <[email protected]> On-behalf-of: SAP [email protected]
1 parent a132001 commit c34baac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pci/src/msix.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ impl MsixConfig {
211211
}
212212

213213
pub fn read_table(&self, offset: u64, data: &mut [u8]) {
214-
assert!((data.len() == 4 || data.len() == 8));
214+
assert!(data.len() == 4 || data.len() == 8);
215215

216216
let index: usize = (offset / MSIX_TABLE_ENTRIES_MODULO) as usize;
217217
let modulo_offset = offset % MSIX_TABLE_ENTRIES_MODULO;
@@ -264,7 +264,7 @@ impl MsixConfig {
264264
}
265265

266266
pub fn write_table(&mut self, offset: u64, data: &[u8]) {
267-
assert!((data.len() == 4 || data.len() == 8));
267+
assert!(data.len() == 4 || data.len() == 8);
268268

269269
let index: usize = (offset / MSIX_TABLE_ENTRIES_MODULO) as usize;
270270
let modulo_offset = offset % MSIX_TABLE_ENTRIES_MODULO;
@@ -360,7 +360,7 @@ impl MsixConfig {
360360
}
361361

362362
pub fn read_pba(&mut self, offset: u64, data: &mut [u8]) {
363-
assert!((data.len() == 4 || data.len() == 8));
363+
assert!(data.len() == 4 || data.len() == 8);
364364

365365
let index: usize = (offset / MSIX_PBA_ENTRIES_MODULO) as usize;
366366
let modulo_offset = offset % MSIX_PBA_ENTRIES_MODULO;

0 commit comments

Comments
 (0)