diff --git a/src/segment/meta.rs b/src/segment/meta.rs index b923dc8..17ffc83 100644 --- a/src/segment/meta.rs +++ b/src/segment/meta.rs @@ -9,7 +9,7 @@ use crate::{ use byteorder::{BigEndian, ReadBytesExt, WriteBytesExt}; use std::io::{Read, Write}; -pub const METADATA_HEADER_MAGIC: &[u8] = &[b'V', b'L', b'O', b'G', b'S', b'M', b'D', b'1']; +pub const METADATA_HEADER_MAGIC: &[u8] = &[b'V', b'L', b'O', b'G', b'S', b'M', b'D', 1]; #[derive(Debug)] #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] diff --git a/src/segment/trailer.rs b/src/segment/trailer.rs index ba2fdf3..b411613 100644 --- a/src/segment/trailer.rs +++ b/src/segment/trailer.rs @@ -11,7 +11,7 @@ use std::{ path::Path, }; -pub const TRAILER_MAGIC: &[u8] = &[b'V', b'L', b'O', b'G', b'T', b'R', b'L', b'1']; +pub const TRAILER_MAGIC: &[u8] = &[b'V', b'L', b'O', b'G', b'T', b'R', b'L', 1]; pub const TRAILER_SIZE: usize = 256; #[derive(Debug)] diff --git a/src/segment/writer.rs b/src/segment/writer.rs index cee799a..a61e140 100644 --- a/src/segment/writer.rs +++ b/src/segment/writer.rs @@ -13,7 +13,7 @@ use std::{ path::{Path, PathBuf}, }; -pub const BLOB_HEADER_MAGIC: &[u8] = &[b'V', b'L', b'G', b'B', b'L', b'O', b'B', b'1']; +pub const BLOB_HEADER_MAGIC: &[u8] = &[b'V', b'L', b'G', b'B', b'L', b'O', b'B', 1]; /// Segment writer pub struct Writer {