aboutsummaryrefslogtreecommitdiff
path: root/src/api/s3
diff options
context:
space:
mode:
authorAlex <lx@deuxfleurs.fr>2025-02-05 19:52:00 +0000
committerAlex <lx@deuxfleurs.fr>2025-02-05 19:52:00 +0000
commitd3226bfa91d4500063c5c287c6256729dcbb3f88 (patch)
treef27dad5a52a165d91edc4ffbddca16d2b1015249 /src/api/s3
parent47e87c8739d7f0d420ea6a01fea99e638414baeb (diff)
parentaf67626ab2bd32e94ab521607574737939a7edf3 (diff)
downloadgarage-d3226bfa91d4500063c5c287c6256729dcbb3f88.tar.gz
garage-d3226bfa91d4500063c5c287c6256729dcbb3f88.zip
Merge pull request 'remove uses of #[async_trait]' (#952) from remove-async-trait into mainHEADmain
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/952
Diffstat (limited to 'src/api/s3')
-rw-r--r--src/api/s3/Cargo.toml1
-rw-r--r--src/api/s3/api_server.rs3
2 files changed, 0 insertions, 4 deletions
diff --git a/src/api/s3/Cargo.toml b/src/api/s3/Cargo.toml
index a1751c9f..387e45db 100644
--- a/src/api/s3/Cargo.toml
+++ b/src/api/s3/Cargo.toml
@@ -24,7 +24,6 @@ garage_api_common.workspace = true
aes-gcm.workspace = true
async-compression.workspace = true
-async-trait.workspace = true
base64.workspace = true
bytes.workspace = true
chrono.workspace = true
diff --git a/src/api/s3/api_server.rs b/src/api/s3/api_server.rs
index ed71b108..bf48bba1 100644
--- a/src/api/s3/api_server.rs
+++ b/src/api/s3/api_server.rs
@@ -1,7 +1,5 @@
use std::sync::Arc;
-use async_trait::async_trait;
-
use hyper::header;
use hyper::{body::Incoming as IncomingBody, Request, Response};
use tokio::sync::watch;
@@ -70,7 +68,6 @@ impl S3ApiServer {
}
}
-#[async_trait]
impl ApiHandler for S3ApiServer {
const API_NAME: &'static str = "s3";
const API_NAME_DISPLAY: &'static str = "S3";