Merge pull request 'Clippy fixes' (#45) from clippy-fixes into main

Reviewed-on: #45
This commit is contained in:
Robin Müller 2023-06-25 22:50:42 +02:00
commit 989f458bfe
2 changed files with 7 additions and 1 deletions

View File

@ -263,7 +263,7 @@ pub trait PoolProvider {
if !self.has_element_at(addr)? {
return Err(StoreError::DataDoesNotExist(*addr));
}
return Ok(self.read(addr)?.len());
Ok(self.read(addr)?.len())
}
}

View File

@ -479,6 +479,8 @@ impl VerificationReporterCore {
))
}
// Internal helper function, too many arguments is acceptable for this case.
#[allow(clippy::too_many_arguments)]
fn sendable_failure_no_step<'src_data, State: Copy>(
&mut self,
src_data_buf: &'src_data mut [u8],
@ -824,6 +826,8 @@ impl VerificationReporterCore {
Ok(())
}
// Internal helper function, too many arguments is acceptable for this case.
#[allow(clippy::too_many_arguments)]
fn create_pus_verif_success_tm<'src_data>(
&mut self,
src_data_buf: &'src_data mut [u8],
@ -858,6 +862,8 @@ impl VerificationReporterCore {
))
}
// Internal helper function, too many arguments is acceptable for this case.
#[allow(clippy::too_many_arguments)]
fn create_pus_verif_fail_tm<'src_data>(
&mut self,
src_data_buf: &'src_data mut [u8],