aboutsummaryrefslogtreecommitdiff
path: root/src/http_util.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-10 23:11:52 +0200
committerAlex Auvolat <alex@adnab.me>2020-04-10 23:11:52 +0200
commitcf8fd948fc4bb6a9f48100ebf89df3752371805d (patch)
tree77fcb45f80ab75da2e5cdf520a50ab7192f9e25c /src/http_util.rs
parentff4fb9756810abeff17c360f3055c3865160b240 (diff)
downloadgarage-cf8fd948fc4bb6a9f48100ebf89df3752371805d.tar.gz
garage-cf8fd948fc4bb6a9f48100ebf89df3752371805d.zip
Add block ref table
Diffstat (limited to 'src/http_util.rs')
-rw-r--r--src/http_util.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http_util.rs b/src/http_util.rs
index 24e64c36..228448f0 100644
--- a/src/http_util.rs
+++ b/src/http_util.rs
@@ -15,7 +15,7 @@ pub struct StreamBody {
impl StreamBody {
pub fn new(stream: StreamType) -> Self {
- Self{stream}
+ Self { stream }
}
}
@@ -47,7 +47,7 @@ pub struct BytesBody {
impl BytesBody {
pub fn new(bytes: Bytes) -> Self {
- Self{bytes: Some(bytes)}
+ Self { bytes: Some(bytes) }
}
}