diff options
author | Alex Auvolat <lx@deuxfleurs.fr> | 2025-01-28 15:44:14 +0100 |
---|---|---|
committer | Alex Auvolat <lx@deuxfleurs.fr> | 2025-01-29 19:26:16 +0100 |
commit | af1a53083452e7953736261db57aea4a68aa4278 (patch) | |
tree | f28c1a8b8f70b532ad1f3234a567d6bc5abac537 /src/api/s3/api_server.rs | |
parent | c99bfe69ea19497895d32669fd15c689b86035d8 (diff) | |
download | garage-af1a53083452e7953736261db57aea4a68aa4278.tar.gz garage-af1a53083452e7953736261db57aea4a68aa4278.zip |
admin api: refactor using macro
Diffstat (limited to 'src/api/s3/api_server.rs')
-rw-r--r-- | src/api/s3/api_server.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/s3/api_server.rs b/src/api/s3/api_server.rs index 3820ad8f..2b638b15 100644 --- a/src/api/s3/api_server.rs +++ b/src/api/s3/api_server.rs @@ -357,8 +357,8 @@ impl ApiHandler for S3ApiServer { } impl ApiEndpoint for S3ApiEndpoint { - fn name(&self) -> Cow<'_, str> { - Cow::borrowed(self.endpoint.name()) + fn name(&self) -> Cow<'static, str> { + Cow::Borrowed(self.endpoint.name()) } fn add_span_attributes(&self, span: SpanRef<'_>) { |