Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Nov 6, 2024
1 parent b63c397 commit fab8ceb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sea-streamer-types/src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ impl<'a> IntoBytesOrStr<'a> for &'a [u8] {
}
}

#[cfg(feature = "json")]
#[cfg(feature = "serde")]
impl serde::Serialize for MessageHeader {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
Expand Down
2 changes: 1 addition & 1 deletion sea-streamer-types/src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ pub fn is_valid_stream_key_char(c: char) -> bool {
c.is_ascii_alphanumeric() || matches!(c, '.' | '_' | '-')
}

#[cfg(feature = "json")]
#[cfg(feature = "serde")]
mod impl_serde {
use super::StreamKey;

Expand Down

0 comments on commit fab8ceb

Please sign in to comment.