aboutsummaryrefslogtreecommitdiff
path: root/src/http_util.rs
diff options
context:
space:
mode:
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) }
}
}