mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-20 03:22:18 +00:00
fix: clippy
This commit is contained in:
@@ -135,7 +135,7 @@ impl LocalDisk {
|
|||||||
Ok(path) => path,
|
Ok(path) => path,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
if e.kind() == ErrorKind::NotFound {
|
if e.kind() == ErrorKind::NotFound {
|
||||||
return Err(DiskError::VolumeNotFound.into());
|
return Err(DiskError::VolumeNotFound);
|
||||||
}
|
}
|
||||||
return Err(to_file_error(e).into());
|
return Err(to_file_error(e).into());
|
||||||
}
|
}
|
||||||
@@ -162,7 +162,7 @@ impl LocalDisk {
|
|||||||
let (set_idx, disk_idx) = fm.find_disk_index_by_disk_id(fm.erasure.this)?;
|
let (set_idx, disk_idx) = fm.find_disk_index_by_disk_id(fm.erasure.this)?;
|
||||||
|
|
||||||
if set_idx as i32 != ep.set_idx || disk_idx as i32 != ep.disk_idx {
|
if set_idx as i32 != ep.set_idx || disk_idx as i32 != ep.disk_idx {
|
||||||
return Err(Error::from(DiskError::InconsistentDisk));
|
return Err(DiskError::InconsistentDisk);
|
||||||
}
|
}
|
||||||
|
|
||||||
id = Some(fm.erasure.this);
|
id = Some(fm.erasure.this);
|
||||||
|
|||||||
Reference in New Issue
Block a user