mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-19 09:36:17 +00:00
chore: localy disable some lints
- clippy::nonminimal_bool disabled for check_size_filter function clippy message: this boolean expression can be simplified help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#nonminimal_bool - clippy::large_enum_variant for `DecryptStreamState` and `State` - clippy::too_many_arguments for `put_block_and_meta` and `test_read_encrypted` - clippy::deref_addrof for specific unsafe code - clippy::doc_overindented_list_items and clippy::doc_lazy_continuation
This commit is contained in:
@@ -41,6 +41,7 @@ pub struct LifecycleWorker {
|
||||
persister: PersisterShared<LifecycleWorkerPersisted>,
|
||||
}
|
||||
|
||||
#[expect(clippy::large_enum_variant)]
|
||||
enum State {
|
||||
Completed(NaiveDate),
|
||||
Running {
|
||||
@@ -368,6 +369,7 @@ async fn process_object(
|
||||
Ok(Skip::NextObject)
|
||||
}
|
||||
|
||||
#[expect(clippy::nonminimal_bool)]
|
||||
fn check_size_filter(version_data: &ObjectVersionData, filter: &LifecycleFilter) -> bool {
|
||||
let size = match version_data {
|
||||
ObjectVersionData::Inline(meta, _) | ObjectVersionData::FirstBlock(meta, _) => meta.size,
|
||||
|
||||
Reference in New Issue
Block a user