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 <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
parent
a132001021
commit
c34baac649
1 changed files with 3 additions and 3 deletions
|
|
@ -211,7 +211,7 @@ impl MsixConfig {
|
|||
}
|
||||
|
||||
pub fn read_table(&self, offset: u64, data: &mut [u8]) {
|
||||
assert!((data.len() == 4 || data.len() == 8));
|
||||
assert!(data.len() == 4 || data.len() == 8);
|
||||
|
||||
let index: usize = (offset / MSIX_TABLE_ENTRIES_MODULO) as usize;
|
||||
let modulo_offset = offset % MSIX_TABLE_ENTRIES_MODULO;
|
||||
|
|
@ -264,7 +264,7 @@ impl MsixConfig {
|
|||
}
|
||||
|
||||
pub fn write_table(&mut self, offset: u64, data: &[u8]) {
|
||||
assert!((data.len() == 4 || data.len() == 8));
|
||||
assert!(data.len() == 4 || data.len() == 8);
|
||||
|
||||
let index: usize = (offset / MSIX_TABLE_ENTRIES_MODULO) as usize;
|
||||
let modulo_offset = offset % MSIX_TABLE_ENTRIES_MODULO;
|
||||
|
|
@ -360,7 +360,7 @@ impl MsixConfig {
|
|||
}
|
||||
|
||||
pub fn read_pba(&mut self, offset: u64, data: &mut [u8]) {
|
||||
assert!((data.len() == 4 || data.len() == 8));
|
||||
assert!(data.len() == 4 || data.len() == 8);
|
||||
|
||||
let index: usize = (offset / MSIX_PBA_ENTRIES_MODULO) as usize;
|
||||
let modulo_offset = offset % MSIX_PBA_ENTRIES_MODULO;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue