mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-10 22:36:53 +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:
@@ -508,6 +508,7 @@ struct DecryptStream {
|
||||
state: DecryptStreamState,
|
||||
}
|
||||
|
||||
#[expect(clippy::large_enum_variant)]
|
||||
enum DecryptStreamState {
|
||||
Starting,
|
||||
Running(DecryptorLE31<Aes256Gcm>),
|
||||
|
||||
@@ -554,6 +554,7 @@ pub(crate) async fn read_and_put_blocks<S: Stream<Item = Result<Bytes, Error>> +
|
||||
Ok((total_size, checksums, first_block_hash))
|
||||
}
|
||||
|
||||
#[expect(clippy::too_many_arguments)]
|
||||
async fn put_block_and_meta(
|
||||
ctx: &ReqCtx,
|
||||
version: &Version,
|
||||
|
||||
Reference in New Issue
Block a user