From bd9eea17e5c4c0203d46f97976fafd00f89be775 Mon Sep 17 00:00:00 2001 From: Andre Luis Anastacio Date: Wed, 31 Jul 2024 08:15:53 -0300 Subject: [PATCH] feat(table): Add debug and clone trait to static table struct (#510) --- crates/iceberg/src/table.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/iceberg/src/table.rs b/crates/iceberg/src/table.rs index b9a701193..d28d6e5d6 100644 --- a/crates/iceberg/src/table.rs +++ b/crates/iceberg/src/table.rs @@ -104,6 +104,7 @@ impl Table { /// .snapshot_id(); /// # } /// ``` +#[derive(Debug, Clone)] pub struct StaticTable(Table); impl StaticTable { @@ -144,9 +145,9 @@ impl StaticTable { self.0.metadata_ref() } - /// Consumes the `StaticTable` and return it as a `Table` - /// Please use this method carefully as the Table it returns remains detached from a catalog - /// and can't be used to perform modifications on the table. + /// Consumes the `StaticTable` and return it as a `Table` + /// Please use this method carefully as the Table it returns remains detached from a catalog + /// and can't be used to perform modifications on the table. pub fn into_table(self) -> Table { self.0 }