aboutsummaryrefslogtreecommitdiff
path: root/src/buf/ext/take.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/buf/ext/take.rs')
-rw-r--r--src/buf/ext/take.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/buf/ext/take.rs b/src/buf/ext/take.rs
index 6fc4ffc..6247165 100644
--- a/src/buf/ext/take.rs
+++ b/src/buf/ext/take.rs
@@ -13,10 +13,7 @@ pub struct Take<T> {
}
pub fn new<T>(inner: T, limit: usize) -> Take<T> {
- Take {
- inner,
- limit,
- }
+ Take { inner, limit }
}
impl<T> Take<T> {