We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f7b5fa commit 94bc7bfCopy full SHA for 94bc7bf
vhost-device-spi/Cargo.toml
@@ -33,3 +33,6 @@ bitflags = "2.9.1"
33
assert_matches = "1.5"
34
virtio-queue = { version = "0.16", features = ["test-utils"] }
35
vm-memory = { version = "0.16.1", features = ["backend-mmap", "backend-atomic"] }
36
+
37
+[lints]
38
+workspace = true
vhost-device-spi/src/linux_spi.rs
@@ -58,7 +58,7 @@ pub fn spi_ioc_message(n: u32) -> u64 {
58
if n * 32 < (1 << _IOC_SIZEBITS) {
59
size = n * 32;
60
}
61
- (SPI_IOC_MESSAGE_BASE | (size << _IOC_SIZESHIFT)) as u64
+ u64::from(SPI_IOC_MESSAGE_BASE | (size << _IOC_SIZESHIFT))
62
63
64
bitflags! {
0 commit comments