mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-08 22:33:22 +00:00
chore(lint): clippy rules redundant_clone (#2554)
This commit is contained in:
@@ -1173,7 +1173,7 @@ mod tests {
|
||||
fn test_io_error_with_disk_error_inside() {
|
||||
// Test io::Error containing DiskError -> StorageError conversion
|
||||
let original_disk_error = DiskError::FileNotFound;
|
||||
let io_with_disk_error = std::io::Error::other(original_disk_error.clone());
|
||||
let io_with_disk_error = std::io::Error::other(original_disk_error);
|
||||
|
||||
// Convert io::Error to StorageError
|
||||
let storage_error: StorageError = io_with_disk_error.into();
|
||||
|
||||
Reference in New Issue
Block a user