Skip to content

Commit

Permalink
impl Default for Payload
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Aug 8, 2024
1 parent 480c46e commit 593ddd8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sea-streamer-types/src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,12 @@ impl<'a> Payload<'a> {
}
}

impl<'a> Default for Payload<'a> {
fn default() -> Self {
Self::new("")
}
}

impl<'a> BytesOrStr<'a> {
pub fn len(&self) -> usize {
match self {
Expand Down

0 comments on commit 593ddd8

Please sign in to comment.