Skip to content

Commit

Permalink
Remove unnecessary borrowing
Browse files Browse the repository at this point in the history
  • Loading branch information
rshkv committed Jan 2, 2025
1 parent 439c529 commit 1c754ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/iceberg/src/metadata_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ impl<'a> MetadataTable<'a> {

/// Get the snapshots table.
pub fn snapshots(&self) -> SnapshotsTable {
SnapshotsTable { table: &self.0 }
SnapshotsTable { table: self.0 }
}

/// Get the manifests table.
pub fn manifests(&self) -> ManifestsTable {
ManifestsTable { table: &self.0 }
ManifestsTable { table: self.0 }
}

/// Return the metadata log entries of the table.
pub fn metadata_log_entries(&self) -> MetadataLogEntriesTable {
MetadataLogEntriesTable { table: &self.0 }
MetadataLogEntriesTable { table: self.0 }
}
}

Expand Down

0 comments on commit 1c754ae

Please sign in to comment.