mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix let_and_return warnings (#31964)
This commit is contained in:
parent
0da2508e4d
commit
c7b73e1ef4
8 changed files with 17 additions and 31 deletions
|
@ -309,11 +309,10 @@ impl BlobMethods for Blob {
|
|||
/// see <https://github.com/w3c/FileAPI/issues/43>
|
||||
pub fn normalize_type_string(s: &str) -> String {
|
||||
if is_ascii_printable(s) {
|
||||
let s_lower = s.to_ascii_lowercase();
|
||||
s.to_ascii_lowercase()
|
||||
// match s_lower.parse() as Result<Mime, ()> {
|
||||
// Ok(_) => s_lower,
|
||||
// Err(_) => "".to_string()
|
||||
s_lower
|
||||
} else {
|
||||
"".to_string()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue