Skip to content

Commit

Permalink
fix: clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgehermo9 committed Nov 2, 2024
1 parent 4d6057b commit 3228bd2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/services/azblob/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ impl Access for AzblobBackend {
let headers = resp.headers();
let mut meta = parse_into_metadata(path, headers)?;

let user_meta = parse_prefixed_headers(&headers, X_MS_META_NAME_PREFIX);
let user_meta = parse_prefixed_headers(headers, X_MS_META_NAME_PREFIX);
if !user_meta.is_empty() {
meta.with_user_metadata(user_meta);
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/services/oss/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl OssCore {
/// before return the user defined metadata, we'll strip the user_metadata_prefix from the key
pub fn parse_metadata(&self, path: &str, headers: &HeaderMap) -> Result<Metadata> {
let mut m = parse_into_metadata(path, headers)?;
let user_meta = parse_prefixed_headers(&headers, X_OSS_META_PREFIX);
let user_meta = parse_prefixed_headers(headers, X_OSS_META_PREFIX);
if !user_meta.is_empty() {
m.with_user_metadata(user_meta);
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/services/s3/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ impl Access for S3Backend {
let headers = resp.headers();
let mut meta = parse_into_metadata(path, headers)?;

let user_meta = parse_prefixed_headers(&headers, X_AMZ_META_PREFIX);
let user_meta = parse_prefixed_headers(headers, X_AMZ_META_PREFIX);
if !user_meta.is_empty() {
meta.with_user_metadata(user_meta);
}
Expand Down

0 comments on commit 3228bd2

Please sign in to comment.