aboutsummaryrefslogtreecommitdiff
path: root/src/api/s3
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-02-07 14:45:52 +0100
committerAlex Auvolat <alex@adnab.me>2024-02-07 14:45:52 +0100
commite524e7a30d4d81c84f1c110017ad972dc5617bf6 (patch)
tree446b074e199c47c109fa517e5ec6717c2fe15b5f /src/api/s3
parentfe48d60d2b63a9914297558bd5dbccae8d96c947 (diff)
downloadgarage-e524e7a30d4d81c84f1c110017ad972dc5617bf6.tar.gz
garage-e524e7a30d4d81c84f1c110017ad972dc5617bf6.zip
[dep-upgrade-202402] rename BytesBody into ErrorBody for clarity
Diffstat (limited to 'src/api/s3')
-rw-r--r--src/api/s3/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/s3/error.rs b/src/api/s3/error.rs
index a4d222de..f86c19a6 100644
--- a/src/api/s3/error.rs
+++ b/src/api/s3/error.rs
@@ -168,7 +168,7 @@ impl ApiError for Error {
}
}
- fn http_body(&self, garage_region: &str, path: &str) -> BytesBody {
+ fn http_body(&self, garage_region: &str, path: &str) -> ErrorBody {
let error = s3_xml::Error {
code: s3_xml::Value(self.aws_code().to_string()),
message: s3_xml::Value(format!("{}", self)),
@@ -185,6 +185,6 @@ impl ApiError for Error {
"#
.into()
});
- string_bytes_body(error_str)
+ error_body(error_str)
}
}