Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/cbor/src/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct Writer<'a> {
}

impl<'a> Writer<'a> {
pub fn new(encoded_cbor: &mut Vec<u8>) -> Writer {
pub fn new(encoded_cbor: &mut Vec<u8>) -> Writer<'_> {
Writer { encoded_cbor }
}

Expand Down
2 changes: 1 addition & 1 deletion libraries/opensk/src/ctap/hid/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ impl<E: Env> CtapHid<E> {
}

/// Helper function to parse a raw packet.
pub fn process_single_packet(packet: &HidPacket) -> (ChannelID, ProcessedPacket) {
pub fn process_single_packet(packet: &HidPacket) -> (ChannelID, ProcessedPacket<'_>) {
let (&cid, rest) = array_refs![packet, 4, 60];
if rest[0] & PACKET_TYPE_MASK != 0 {
let cmd = rest[0] & !PACKET_TYPE_MASK;
Expand Down
2 changes: 1 addition & 1 deletion src/env/tock/phantom_buffer_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ where
self.storage.max_page_erases()
}

fn read_slice(&self, index: StorageIndex, length: usize) -> StorageResult<Cow<[u8]>> {
fn read_slice(&self, index: StorageIndex, length: usize) -> StorageResult<Cow<'_, [u8]>> {
self.storage.read_slice(index, length)
}

Expand Down
Loading