Skip to content

Commit bd9eea1

Browse files
authored
feat(table): Add debug and clone trait to static table struct (#510)
1 parent 001dfa7 commit bd9eea1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

crates/iceberg/src/table.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ impl Table {
104104
/// .snapshot_id();
105105
/// # }
106106
/// ```
107+
#[derive(Debug, Clone)]
107108
pub struct StaticTable(Table);
108109

109110
impl StaticTable {
@@ -144,9 +145,9 @@ impl StaticTable {
144145
self.0.metadata_ref()
145146
}
146147

147-
/// Consumes the `StaticTable` and return it as a `Table`
148-
/// Please use this method carefully as the Table it returns remains detached from a catalog
149-
/// and can't be used to perform modifications on the table.
148+
/// Consumes the `StaticTable` and return it as a `Table`
149+
/// Please use this method carefully as the Table it returns remains detached from a catalog
150+
/// and can't be used to perform modifications on the table.
150151
pub fn into_table(self) -> Table {
151152
self.0
152153
}

0 commit comments

Comments
 (0)