Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Oct 25, 2023
1 parent 56d95d7 commit d757011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions object_store/src/gcp/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ use std::sync::Arc;

const VERSION_HEADER: &str = "x-goog-generation";

const VERSION_MATCH: HeaderName = HeaderName::from_static("x-goog-if-generation-match");
static VERSION_MATCH: HeaderName = HeaderName::from_static("x-goog-if-generation-match");

#[derive(Debug, Snafu)]
enum Error {
Expand Down Expand Up @@ -399,7 +399,7 @@ impl GoogleCloudStorageClient {
.header("x-goog-copy-source", source);

if if_not_exists {
builder = builder.header(VERSION_MATCH, 0);
builder = builder.header(&VERSION_MATCH, 0);
}

builder
Expand Down

0 comments on commit d757011

Please sign in to comment.