Skip to content

Commit a236fe5

Browse files
committed
fix: build
1 parent 9d5ce94 commit a236fe5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/segment/stats.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ pub const TRAILER_MAGIC: &[u8] = &[b'F', b'J', b'L', b'L', b'T', b'R', b'L', b'1
1111
pub const TRAILER_SIZE: usize = 256;
1212

1313
#[derive(Debug)]
14+
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
1415
pub struct SegmentFileTrailer {
1516
pub item_count: u64,
1617
pub total_bytes: u64,

src/segment/writer.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use super::stats::SegmentFileTrailer;
12
use crate::{id::SegmentId, serde::Serializable};
23
use byteorder::{BigEndian, WriteBytesExt};
34
use std::{
@@ -6,8 +7,6 @@ use std::{
67
path::{Path, PathBuf},
78
};
89

9-
use super::stats::SegmentFileTrailer;
10-
1110
/// Segment writer
1211
pub struct Writer {
1312
pub(crate) path: PathBuf,

0 commit comments

Comments
 (0)