diff --git a/rustfs/src/service.rs b/rustfs/src/service.rs index 3615baf13..7262fb689 100644 --- a/rustfs/src/service.rs +++ b/rustfs/src/service.rs @@ -77,6 +77,19 @@ pin_project! { } } +impl Default for HybridBody +where + RestBody: Default, + + GrpcBody: Default, +{ + fn default() -> Self { + Self::Rest { + rest_body: RestBody::default(), + } + } +} + impl http_body::Body for HybridBody where RestBody: http_body::Body + Send + Unpin,