File tree Expand file tree Collapse file tree 2 files changed +8
-13
lines changed
Expand file tree Collapse file tree 2 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -378,11 +378,9 @@ fn lookup_ref<'a>(
378378 array_manifest : generated:: ArrayManifest < ' a > ,
379379 coord : & ChunkIndices ,
380380) -> Option < generated:: ChunkRef < ' a > > {
381- let res =
382- array_manifest. refs ( ) . lookup_by_key ( coord. 0 . as_slice ( ) , |chunk_ref, coords| {
383- chunk_ref. index ( ) . iter ( ) . cmp ( coords. iter ( ) . copied ( ) )
384- } ) ;
385- res
381+ array_manifest. refs ( ) . lookup_by_key ( coord. 0 . as_slice ( ) , |chunk_ref, coords| {
382+ chunk_ref. index ( ) . iter ( ) . cmp ( coords. iter ( ) . copied ( ) )
383+ } )
386384}
387385
388386struct PayloadIterator {
Original file line number Diff line number Diff line change @@ -790,14 +790,11 @@ impl ObjectStoreBackend for S3ObjectStoreBackend {
790790 . with_access_key_id ( credentials. access_key_id . clone ( ) )
791791 . with_secret_access_key ( credentials. secret_access_key . clone ( ) ) ;
792792
793- let builder =
794- if let Some ( session_token) = credentials. session_token . as_ref ( ) {
795- builder. with_token ( session_token. clone ( ) )
796- } else {
797- builder
798- } ;
799-
800- builder
793+ if let Some ( session_token) = credentials. session_token . as_ref ( ) {
794+ builder. with_token ( session_token. clone ( ) )
795+ } else {
796+ builder
797+ }
801798 }
802799 Some ( S3Credentials :: Anonymous ) => builder. with_skip_signature ( true ) ,
803800 // TODO: Support refreshable credentials
You can’t perform that action at this time.
0 commit comments