Skip to content

Commit

Permalink
Expose Body::empty for easier tests (#1444)
Browse files Browse the repository at this point in the history
Signed-off-by: clux <sszynrae@gmail.com>
  • Loading branch information
clux committed Mar 26, 2024
1 parent 362b985 commit acc347e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kube-client/src/client/body.rs
Expand Up @@ -32,7 +32,8 @@ impl Body {
Body { kind }
}

pub(crate) fn empty() -> Self {
/// Create an empty body
pub fn empty() -> Self {
Self::new(Kind::Once(None))
}

Expand Down

0 comments on commit acc347e

Please sign in to comment.