diff options
author | Alex <lx@deuxfleurs.fr> | 2025-01-29 20:42:56 +0000 |
---|---|---|
committer | Alex <lx@deuxfleurs.fr> | 2025-01-29 20:42:56 +0000 |
commit | 6ed78abb5cd09f4e5ca5effe5d6137faf33133f8 (patch) | |
tree | c33690f411436ef2022f847447027fbcf2feb41a /src/api/s3 | |
parent | 5560a963e048f6bb000fc37b7e7ad73dbe96f3ab (diff) | |
parent | 19454c1679352012f1953949d02880e34820039f (diff) | |
download | garage-6ed78abb5cd09f4e5ca5effe5d6137faf33133f8.tar.gz garage-6ed78abb5cd09f4e5ca5effe5d6137faf33133f8.zip |
Merge pull request 'admin API refactoring (step 1)' (#939) from refactor-admin into next-v2
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/939
Diffstat (limited to 'src/api/s3')
-rw-r--r-- | src/api/s3/api_server.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/api/s3/api_server.rs b/src/api/s3/api_server.rs index f9dafa10..2b638b15 100644 --- a/src/api/s3/api_server.rs +++ b/src/api/s3/api_server.rs @@ -1,3 +1,4 @@ +use std::borrow::Cow; use std::sync::Arc; use async_trait::async_trait; @@ -356,8 +357,8 @@ impl ApiHandler for S3ApiServer { } impl ApiEndpoint for S3ApiEndpoint { - fn name(&self) -> &'static str { - self.endpoint.name() + fn name(&self) -> Cow<'static, str> { + Cow::Borrowed(self.endpoint.name()) } fn add_span_attributes(&self, span: SpanRef<'_>) { |