Skip to content

Commit

Permalink
fix ParserConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
tact1m4n3 committed Nov 16, 2024
1 parent 23c248c commit 571b328
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ use snafu::Snafu;
#[non_exhaustive]
pub struct ParserConfig {
/// Sync byte to use for finding the start of a frame. Default is `0xC8`.
sync: &'static [u8],
pub sync: &'static [u8],
}

impl Default for ParserConfig {
fn default() -> Self {
impl ParserConfig {
pub const fn default() -> Self {
Self { sync: &[SYNC_BYTE] }
}
}
Expand Down

0 comments on commit 571b328

Please sign in to comment.