Skip to content

Commit

Permalink
More clippy appeasement
Browse files Browse the repository at this point in the history
  • Loading branch information
AljoschaMeyer committed Jul 21, 2024
1 parent e45c7d9 commit c683d8b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/common/producer/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ macro_rules! invarianted_producer_methods {
ufotofu::sync::Producer::produce(&mut self.0)
}

fn overwrite_full_slice<'b>(
fn overwrite_full_slice(
&mut self,
buf: &'b mut [Self::Item],
buf: &mut [Self::Item],
) -> Result<(), ufotofu::sync::OverwriteFullSliceError<Self::Final, Self::Error>> {
ufotofu::sync::Producer::overwrite_full_slice(&mut self.0, buf)
}
Expand Down Expand Up @@ -103,9 +103,9 @@ macro_rules! invarianted_bulk_producer_methods {
ufotofu::sync::BulkProducer::bulk_produce(&mut self.0, buf)
}

fn bulk_overwrite_full_slice<'ihguiweg>(
fn bulk_overwrite_full_slice(
&mut self,
buf: &'ihguiweg mut [Self::Item],
buf: &mut [Self::Item],
) -> Result<(), ufotofu::sync::OverwriteFullSliceError<Self::Final, Self::Error>> {
ufotofu::sync::BulkProducer::bulk_overwrite_full_slice(&mut self.0, buf)
}
Expand Down
8 changes: 4 additions & 4 deletions src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,9 @@ pub trait Producer {
///
/// This is a trait method for convenience, you should never need to
/// replace the default implementation.
fn overwrite_full_slice<'a>(
fn overwrite_full_slice(
&mut self,
buf: &'a mut [Self::Item],
buf: &mut [Self::Item],
) -> Result<(), OverwriteFullSliceError<Self::Final, Self::Error>> {
for i in 0..buf.len() {
match self.produce() {
Expand Down Expand Up @@ -466,9 +466,9 @@ where
///
/// This is a trait method for convenience, you should never need to
/// replace the default implementation.
fn bulk_overwrite_full_slice<'a>(
fn bulk_overwrite_full_slice(
&mut self,
buf: &'a mut [Self::Item],
buf: &mut [Self::Item],
) -> Result<(), OverwriteFullSliceError<Self::Final, Self::Error>> {
let mut produced_so_far = 0;

Expand Down

0 comments on commit c683d8b

Please sign in to comment.