mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-05 21:07:43 +00:00
chore(lint): clippy rules redundant_clone (#2554)
This commit is contained in:
@@ -346,7 +346,7 @@ pub fn path_to_bucket_object(s: &str) -> (String, String) {
|
||||
/// If the prefix does not contain a separator, or resolves to root/current dir, an empty string is returned.
|
||||
/// The result ensures a trailing slash if not empty.
|
||||
pub fn base_dir_from_prefix(prefix: &str) -> String {
|
||||
let mut base_dir = dir(prefix).to_owned();
|
||||
let mut base_dir = dir(prefix);
|
||||
if base_dir == "." || base_dir == "./" || base_dir == "/" {
|
||||
base_dir = "".to_owned();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user