Skip to content

Commit 93e8fc4

Browse files
committed
can remove this part
1 parent 1eff2ff commit 93e8fc4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

crates/iceberg/src/spec/manifest/_serde.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl ManifestEntryV1 {
9999
#[serde_as]
100100
#[derive(Serialize, Deserialize)]
101101
pub(super) struct DataFileSerde {
102-
#[serde(default = "default_to_zero")]
102+
#[serde(default)]
103103
content: i32,
104104
file_path: String,
105105
file_format: String,
@@ -125,10 +125,6 @@ pub(super) struct DataFileSerde {
125125
content_size_in_bytes: Option<i64>,
126126
}
127127

128-
fn default_to_zero() -> i32 {
129-
0
130-
}
131-
132128
impl DataFileSerde {
133129
pub fn try_from(
134130
value: super::DataFile,

0 commit comments

Comments
 (0)