Skip to content

Commit d3bde3e

Browse files
authored
Nightly lints from more recent nightly (#748)
1 parent f8824ab commit d3bde3e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

libraries/cbor/src/writer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct Writer<'a> {
4848
}
4949

5050
impl<'a> Writer<'a> {
51-
pub fn new(encoded_cbor: &mut Vec<u8>) -> Writer {
51+
pub fn new(encoded_cbor: &mut Vec<u8>) -> Writer<'_> {
5252
Writer { encoded_cbor }
5353
}
5454

libraries/opensk/src/ctap/hid/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ impl<E: Env> CtapHid<E> {
383383
}
384384

385385
/// Helper function to parse a raw packet.
386-
pub fn process_single_packet(packet: &HidPacket) -> (ChannelID, ProcessedPacket) {
386+
pub fn process_single_packet(packet: &HidPacket) -> (ChannelID, ProcessedPacket<'_>) {
387387
let (&cid, rest) = array_refs![packet, 4, 60];
388388
if rest[0] & PACKET_TYPE_MASK != 0 {
389389
let cmd = rest[0] & !PACKET_TYPE_MASK;

src/env/tock/phantom_buffer_storage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ where
9797
self.storage.max_page_erases()
9898
}
9999

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

0 commit comments

Comments
 (0)