Skip to content

Commit c99a542

Browse files
Fix clippy 1.83 lints
1 parent ae0277a commit c99a542

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

gpt_disk_io/src/disk.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ impl<'disk, 'buf, Io: BlockIo> GptPartitionEntryIter<'disk, 'buf, Io> {
7474
}
7575
}
7676

77-
impl<'disk, 'buf, Io: BlockIo> Iterator
78-
for GptPartitionEntryIter<'disk, 'buf, Io>
79-
{
77+
impl<Io: BlockIo> Iterator for GptPartitionEntryIter<'_, '_, Io> {
8078
type Item = Result<GptPartitionEntry, DiskError<Io::Error>>;
8179

8280
fn next(&mut self) -> Option<Self::Item> {
@@ -101,7 +99,7 @@ impl<'disk, 'buf, Io: BlockIo> Iterator
10199
/// <https://stackoverflow.com/a/50548538>.
102100
pub trait Captures<'a, 'b> {}
103101

104-
impl<'a, 'b, T: ?Sized> Captures<'a, 'b> for T {}
102+
impl<T: ?Sized> Captures<'_, '_> for T {}
105103

106104
/// Error type used by [`Disk`] methods.
107105
#[allow(clippy::module_name_repetitions)]
@@ -287,6 +285,7 @@ impl<Io: BlockIo> Disk<Io> {
287285
/// [`GptPartitionEntryArrayLayout`] for more.
288286
///
289287
/// `block_buf` is a mutable byte buffer with a length of at least one block.
288+
#[allow(clippy::type_complexity)]
290289
pub fn gpt_partition_entry_array_iter<'disk, 'buf>(
291290
&'disk mut self,
292291
layout: GptPartitionEntryArrayLayout,

gpt_disk_types/src/partition_entry.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ struct GptPartitionNameCharIter<'a> {
212212
byte_index: usize,
213213
}
214214

215-
impl<'a> Iterator for GptPartitionNameCharIter<'a> {
215+
impl Iterator for GptPartitionNameCharIter<'_> {
216216
type Item = char;
217217

218218
fn next(&mut self) -> Option<Self::Item> {

0 commit comments

Comments
 (0)