Skip to content

Commit 94bc7bf

Browse files
epilysstefano-garzarella
authored andcommitted
spi: enable workspace-wide lints
Signed-off-by: Manos Pitsidianakis <[email protected]>
1 parent 9f7b5fa commit 94bc7bf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

vhost-device-spi/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ bitflags = "2.9.1"
3333
assert_matches = "1.5"
3434
virtio-queue = { version = "0.16", features = ["test-utils"] }
3535
vm-memory = { version = "0.16.1", features = ["backend-mmap", "backend-atomic"] }
36+
37+
[lints]
38+
workspace = true

vhost-device-spi/src/linux_spi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub fn spi_ioc_message(n: u32) -> u64 {
5858
if n * 32 < (1 << _IOC_SIZEBITS) {
5959
size = n * 32;
6060
}
61-
(SPI_IOC_MESSAGE_BASE | (size << _IOC_SIZESHIFT)) as u64
61+
u64::from(SPI_IOC_MESSAGE_BASE | (size << _IOC_SIZESHIFT))
6262
}
6363

6464
bitflags! {

0 commit comments

Comments
 (0)