Skip to content

Commit

Permalink
derive Copy in ManifestContentType
Browse files Browse the repository at this point in the history
  • Loading branch information
flaneur2020 committed Jan 1, 2025
1 parent 83e8811 commit 4c6e338
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/iceberg/src/metadata_scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ impl<'a> ManifestsTable<'a> {
)
.await?;
for manifest in manifest_list.entries() {
content.append_value(manifest.content.clone() as i8);
content.append_value(manifest.content as i8);
path.append_value(manifest.manifest_path.clone());
length.append_value(manifest.manifest_length);
partition_spec_id.append_value(manifest.partition_spec_id);
Expand Down
2 changes: 1 addition & 1 deletion crates/iceberg/src/spec/manifest_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ impl ManifestFile {
}

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

0 comments on commit 4c6e338

Please # to comment.