Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ad7d44a authored by James Farrell's avatar James Farrell
Browse files

Clippy lint fixes for rustc 1.86.0

Test: m, treehugger
Change-Id: I7559a3a81a83ec4f5df9528c2918d06f0d59f681
Bug: 430129076
Flag: EXEMPT refactor
parent 98ab533a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -200,7 +200,7 @@ impl Device {
    }

    pub fn properties_bitmap(&self) -> Result<Vec<u8>, nix::errno::Errno> {
        let buf_size = (INPUT_PROP_CNT + 7) / 8;
        let buf_size = INPUT_PROP_CNT.div_ceil(8);
        // SAFETY:
        // We know that fd is a valid file descriptor as it comes from a File that we have open.
        //
@@ -211,7 +211,7 @@ impl Device {
    }

    pub fn bitmap_for_event_type(&self, event_type: EventType) -> nix::Result<Vec<u8>> {
        let buf_size = (event_type.code_count() + 7) / 8;
        let buf_size = event_type.code_count().div_ceil(8);
        let mut buf = vec![0; buf_size];

        // The EVIOCGBIT ioctl can't be bound using ioctl_read_buf! like the others, since it uses
+3 −3

File changed.

Contains only whitespace changes.