mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-17 01:30:33 +00:00
fix clippy
This commit is contained in:
@@ -58,8 +58,7 @@ pub async fn del_opts(
|
||||
let vid = if vid.is_none() {
|
||||
headers
|
||||
.get(RUSTFS_BUCKET_SOURCE_VERSION_ID)
|
||||
.map(|v| v.to_str().ok().map(|s| s.to_owned()))
|
||||
.flatten()
|
||||
.and_then(|v| v.to_str().ok().map(|s| s.to_owned()))
|
||||
} else {
|
||||
vid
|
||||
};
|
||||
@@ -185,8 +184,7 @@ pub async fn put_opts(
|
||||
let vid = if vid.is_none() {
|
||||
headers
|
||||
.get(RUSTFS_BUCKET_SOURCE_VERSION_ID)
|
||||
.map(|v| v.to_str().ok().map(|s| s.to_owned()))
|
||||
.flatten()
|
||||
.and_then(|v| v.to_str().ok().map(|s| s.to_owned()))
|
||||
} else {
|
||||
vid
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user