mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-30 16:59:52 +00:00
chore: upgrade dependencies and migrate to aws-lc-rs (#1333)
This commit is contained in:
@@ -97,11 +97,11 @@ pub fn parse_key(s: &str) -> Key {
|
||||
}
|
||||
|
||||
// Number of batch items parsed
|
||||
if let Some(colon_pos) = name.find(':') {
|
||||
if let Ok(count) = name[..colon_pos].parse::<usize>() {
|
||||
item_count = count;
|
||||
name = name[colon_pos + 1..].to_string();
|
||||
}
|
||||
if let Some(colon_pos) = name.find(':')
|
||||
&& let Ok(count) = name[..colon_pos].parse::<usize>()
|
||||
{
|
||||
item_count = count;
|
||||
name = name[colon_pos + 1..].to_string();
|
||||
}
|
||||
|
||||
// Resolve extension
|
||||
|
||||
Reference in New Issue
Block a user