Skip to content

Commit 8b08bce

Browse files
committed
fix clippy warnings
1 parent 1708c5f commit 8b08bce

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

  • catalogs/iceberg-file-catalog/src
  • iceberg-rust/src/table

catalogs/iceberg-file-catalog/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ impl FileCatalog {
556556
});
557557
files
558558
.into_iter()
559-
.last()
559+
.next_back()
560560
.ok_or(IcebergError::CatalogNotFound)
561561
}
562562

@@ -588,7 +588,7 @@ fn trim_start_path(path: &str) -> &str {
588588

589589
fn parse_version(path: &str) -> Result<u64, IcebergError> {
590590
path.split('/')
591-
.last()
591+
.next_back()
592592
.ok_or(IcebergError::InvalidFormat("Metadata location".to_owned()))?
593593
.trim_start_matches('v')
594594
.trim_end_matches(".metadata.json")

iceberg-rust/src/table/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ impl Table {
192192
///
193193
/// # Returns
194194
/// * `Result<Vec<ManifestListEntry>, Error>` - Vector of manifest entries in the range,
195-
/// or an empty vector if no current snapshot exists
195+
/// or an empty vector if no current snapshot exists
196196
///
197197
/// # Errors
198198
/// Returns an error if:

0 commit comments

Comments
 (0)