Skip to content

Commit b9a76e8

Browse files
committed
clean up
1 parent de5a0bd commit b9a76e8

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

crates/iceberg/src/io/file_io.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,14 +407,14 @@ impl OutputFile {
407407

408408
/// Checks if file exists.
409409
pub async fn exists(&self) -> Result<bool> {
410-
Ok(self.storage.exists(&self.path).await?)
410+
self.storage.exists(&self.path).await?
411411
}
412412

413413
/// Deletes file.
414414
///
415415
/// If the file does not exist, it will not return error.
416416
pub async fn delete(&self) -> Result<()> {
417-
Ok(self.storage.delete(&self.path).await?)
417+
self.storage.delete(&self.path).await?
418418
}
419419

420420
/// Converts into [`InputFile`].

crates/iceberg/src/io/storage_memory.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ use crate::io::{
2828
Extensions, FileMetadata, FileRead, FileWrite, InputFile, OutputFile, Storage, StorageBuilder,
2929
};
3030

31-
pub(crate) fn memory_config_build() -> Result<Operator> {
32-
Ok(Operator::from_config(MemoryConfig::default())?.finish())
33-
}
34-
3531
/// Memory storage implementation using OpenDAL
3632
#[derive(Debug, Clone)]
3733
pub struct OpenDALMemoryStorage {

0 commit comments

Comments
 (0)