Gwen Lg
|
6dbcdcd784
|
style: improve use of std api
- replace get(0) by first()
lint message: accessing first element with `objs.get(0)`
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#get_first
- use io::Error::other method available since Rust 1.87
lint message: this can be `std::io::Error::other(_)`
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#io_other_error
- implement From<_> instead of Into<_>
lint message: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#from_over_into
- use next_back instead of rev + next
lint message: manual backwards iteration
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#manual_next_back
- use saturating_sub instead of manual implement it
lint message: manual arithmetic check found
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#implicit_saturating_sub
- add Default implementation for Checksummer
use derived Default ans use it in new, as new set all value to None
lint message: you should consider adding a `Default` implementation for `Checksummer`
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#new_without_default
- use `any` instead of `find` + `is_some`
lint message: called `is_some()` after searching an `Iterator` with `find`
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#search_is_some
- replace `and_then` + `Some(_)` with `map`
lint message: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)`
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#bind_instead_of_map
- replace `skip_while` + `next` with `find`
lint message: called `skip_while(<p>).next()` on an `Iterator`
help: this is more succinctly expressed by calling `.find(!<p>)` instead
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#skip_while_next
- use `matches!` instead of manual implementation
lint message: match expression looks like `matches!` macro
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#match_like_matches_macro
- use `keys` and `values methods insteads of iterating and ignoring either the keys or values.
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#iter_kv_map
|
2026-01-29 20:49:28 +01:00 |
|
Gwen Lg
|
141b3f24f1
|
chore: clean relative to references and borrows
- lint message: the borrowed expression implements the required traits
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#needless_borrows_for_generic_args
- lint message: this expression creates a reference which is immediately dereferenced by the compiler
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#needless_borrow
- lint message: you don't need to add `&` to all patterns
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#match_ref_pat
- remove useless taken reference
lint message: needlessly taken reference of left operand
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#op_ref
- use &Path instead of &PathBuf as fn parameters
lint message: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#ptr_arg
|
2026-01-29 20:49:28 +01:00 |
|
Alex Auvolat
|
c13af97b81
|
return ChecksumType in CompleteMultipartUpload result
|
2025-05-22 18:24:29 +02:00 |
|
Alex Auvolat
|
e475c7f802
|
api: switch to crc_fast for checksumming and implement full-object mpu checksums
|
2025-05-22 17:03:54 +02:00 |
|
Alex Auvolat
|
589a992af8
|
api: parse x-amz-checksum-type and validate combination with algo
|
2025-05-22 17:03:54 +02:00 |
|
Alex Auvolat
|
a826c361a9
|
add crc64nvme checksumming algorithm (fix #963)
|
2025-03-19 15:51:06 +01:00 |
|
Alex Auvolat
|
730bfee753
|
api: validate trailing checksum + add test for unsigned-paylad-trailer
|
2025-02-18 15:33:42 +01:00 |
|
Alex Auvolat
|
21c0dda16a
|
api: refactor: move checksumming code around again
|
2025-02-17 20:11:06 +01:00 |
|
Alex Auvolat
|
658541d812
|
api: use checksumming in api_common::signature for put/putpart
|
2025-02-17 19:54:25 +01:00 |
|
Alex Auvolat
|
c5df820e2c
|
api: start refactor of signature to calculate checksums earlier
|
2025-02-17 18:47:06 +01:00 |
|
Alex Auvolat
|
44a896f9b5
|
api: add logic to parse x-amz-content-sha256
|
2025-02-16 18:25:35 +01:00 |
|
Alex Auvolat
|
cee7560fc1
|
api: refactor: move checksum algorithms to common
|
2025-02-16 17:25:55 +01:00 |
|