Skip to content

Commit 4c6e338

Browse files
committed
derive Copy in ManifestContentType
1 parent 83e8811 commit 4c6e338

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/iceberg/src/metadata_scan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ impl<'a> ManifestsTable<'a> {
209209
)
210210
.await?;
211211
for manifest in manifest_list.entries() {
212-
content.append_value(manifest.content.clone() as i8);
212+
content.append_value(manifest.content as i8);
213213
path.append_value(manifest.manifest_path.clone());
214214
length.append_value(manifest.manifest_length);
215215
partition_spec_id.append_value(manifest.partition_spec_id);

crates/iceberg/src/spec/manifest_list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ impl ManifestFile {
597597
}
598598

599599
/// The type of files tracked by the manifest, either data or delete files; Data(0) for all v1 manifests
600-
#[derive(Debug, PartialEq, Clone, Eq)]
600+
#[derive(Debug, PartialEq, Clone, Copy, Eq)]
601601
pub enum ManifestContentType {
602602
/// The manifest content is data.
603603
Data = 0,

0 commit comments

Comments
 (0)