summaryrefslogtreecommitdiff
path: root/rola-bucket/src/protocol/local_fs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rola-bucket/src/protocol/local_fs.rs')
-rw-r--r--rola-bucket/src/protocol/local_fs.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/rola-bucket/src/protocol/local_fs.rs b/rola-bucket/src/protocol/local_fs.rs
index 1f287f2..b3885a7 100644
--- a/rola-bucket/src/protocol/local_fs.rs
+++ b/rola-bucket/src/protocol/local_fs.rs
@@ -38,7 +38,7 @@ impl BucketTransferProtocol for LocalFileSystemProtocol {
let abs_send_path = req.absolute_file_path_to_upload;
let abs_receive_path = bucket_root.join(req.relative_file_path_to_receive);
copy_with_temp_rename(abs_send_path, abs_receive_path)
- .map_err(|e| BucketTransferProtocolError::IoError(e))?;
+ .map_err(BucketTransferProtocolError::IoError)?;
Ok(())
}
@@ -54,7 +54,7 @@ impl BucketTransferProtocol for LocalFileSystemProtocol {
let abs_send_path = bucket_root.join(req.relative_file_path_to_transfer);
let abs_receive_path = req.absolute_file_path_to_download;
copy_with_temp_rename(abs_send_path, abs_receive_path)
- .map_err(|e| BucketTransferProtocolError::IoError(e))?;
+ .map_err(BucketTransferProtocolError::IoError)?;
Ok(())
}
@@ -70,7 +70,7 @@ impl BucketTransferProtocol for LocalFileSystemProtocol {
let abs_send_path = req.absolute_file_path_to_transfer;
let abs_receive_path = client_root.join(req.relative_file_path_to_download);
copy_with_temp_rename(abs_send_path, abs_receive_path)
- .map_err(|e| BucketTransferProtocolError::IoError(e))?;
+ .map_err(BucketTransferProtocolError::IoError)?;
Ok(())
}
@@ -86,7 +86,7 @@ impl BucketTransferProtocol for LocalFileSystemProtocol {
let abs_send_path = req.absolute_file_path_to_receive;
let abs_receive_path = client_root.join(req.relative_file_path_to_upload);
copy_with_temp_rename(abs_send_path, abs_receive_path)
- .map_err(|e| BucketTransferProtocolError::IoError(e))?;
+ .map_err(BucketTransferProtocolError::IoError)?;
Ok(())
}
}