Skip to content

Commit

Permalink
Fix clippy lint warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
qwandor committed Dec 6, 2024
1 parent 5bc53a1 commit 8f37811
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ fn align_up(size: usize) -> usize {

/// The number of pages required to store `size` bytes, rounded up to a whole number of pages.
fn pages(size: usize) -> usize {
(size + PAGE_SIZE - 1) / PAGE_SIZE
size.div_ceil(PAGE_SIZE)
}

// TODO: Use NonNull::slice_from_raw_parts once it is stable.
Expand Down
2 changes: 1 addition & 1 deletion src/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ impl<'a, 'b> InputOutputIter<'a, 'b> {
}
}

impl<'a, 'b> Iterator for InputOutputIter<'a, 'b> {
impl Iterator for InputOutputIter<'_, '_> {
type Item = (NonNull<[u8]>, BufferDirection);

fn next(&mut self) -> Option<Self::Item> {
Expand Down
2 changes: 1 addition & 1 deletion src/transport/pci/bus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ pub struct CapabilityIterator<'a, C: ConfigurationAccess> {
next_capability_offset: Option<u8>,
}

impl<'a, C: ConfigurationAccess> Iterator for CapabilityIterator<'a, C> {
impl<C: ConfigurationAccess> Iterator for CapabilityIterator<'_, C> {
type Item = CapabilityInfo;

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

0 comments on commit 8f37811

Please sign in to comment.