Merge pull request 'Clippy fixes' (#45) from clippy-fixes into main
Reviewed-on: #45
This commit is contained in:
commit
989f458bfe
@ -263,7 +263,7 @@ pub trait PoolProvider {
|
|||||||
if !self.has_element_at(addr)? {
|
if !self.has_element_at(addr)? {
|
||||||
return Err(StoreError::DataDoesNotExist(*addr));
|
return Err(StoreError::DataDoesNotExist(*addr));
|
||||||
}
|
}
|
||||||
return Ok(self.read(addr)?.len());
|
Ok(self.read(addr)?.len())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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>(
|
fn sendable_failure_no_step<'src_data, State: Copy>(
|
||||||
&mut self,
|
&mut self,
|
||||||
src_data_buf: &'src_data mut [u8],
|
src_data_buf: &'src_data mut [u8],
|
||||||
@ -824,6 +826,8 @@ impl VerificationReporterCore {
|
|||||||
Ok(())
|
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>(
|
fn create_pus_verif_success_tm<'src_data>(
|
||||||
&mut self,
|
&mut self,
|
||||||
src_data_buf: &'src_data mut [u8],
|
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>(
|
fn create_pus_verif_fail_tm<'src_data>(
|
||||||
&mut self,
|
&mut self,
|
||||||
src_data_buf: &'src_data mut [u8],
|
src_data_buf: &'src_data mut [u8],
|
||||||
|
Loading…
Reference in New Issue
Block a user