Skip to content

Commit f23b38a

Browse files
committed
Fixes
1 parent 9e76369 commit f23b38a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crates/catalog/memory/src/catalog.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ mod tests {
344344
let expected_partition_spec = PartitionSpec::builder()
345345
.with_spec_id(0)
346346
.with_fields(vec![])
347-
.build()
348-
.unwrap();
347+
.unwrap()
348+
.build_unchecked();
349349

350350
assert_eq!(
351351
metadata

crates/iceberg/src/spec/partition.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ pub struct PartitionField {
4646

4747
impl PartitionField {
4848
/// To unbound partition field
49-
pub fn to_unbound(&self) -> UnboundPartitionField {
49+
pub fn to_unbound(self) -> UnboundPartitionField {
5050
UnboundPartitionField {
5151
source_id: self.source_id,
5252
partition_id: Some(self.field_id),
53-
name: self.name.clone(),
54-
transform: self.transform.clone(),
53+
name: self.name,
54+
transform: self.transform,
5555
}
5656
}
5757
}

0 commit comments

Comments
 (0)