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

Commit d9534945 authored by Jeremy Wu's avatar Jeremy Wu
Browse files

topshim: remove redundant call to suppress warning

This removes what the Rust compiler is complaining as a warning.

Bug: 317682584
Test: m Bluetooth
Flag: EXEMPT floss only changes
Change-Id: I1a461056adb1b23ab1ac267e6ba8f692265a98cd
parent d89102b9
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -80,9 +80,7 @@ impl TryFrom<&[u8]> for ConnectionComplete {
        // the native endianness of the machine when writing to the socket. When
        // parsing, make sure to use native endianness here.
        let (size_bytes, rest) = bytes.split_at(std::mem::size_of::<u16>());
        if u16::from_ne_bytes(size_bytes.clone().try_into().unwrap())
            != (CONNECT_COMPLETE_SIZE as u16)
        {
        if u16::from_ne_bytes(size_bytes.try_into().unwrap()) != (CONNECT_COMPLETE_SIZE as u16) {
            return Err(format!("Wrong size in Connection Complete: {:?}", size_bytes));
        }