mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Replace many uses of to_ascii_lowercase() by make_ascii_lowercase()
This commit is contained in:
parent
67cbda4be3
commit
105d990845
7 changed files with 32 additions and 23 deletions
|
@ -123,9 +123,10 @@ impl BlobMethods for Blob {
|
|||
};
|
||||
let relativeContentType = match contentType {
|
||||
None => "".to_owned(),
|
||||
Some(str) => {
|
||||
Some(mut str) => {
|
||||
if is_ascii_printable(&str) {
|
||||
str.to_ascii_lowercase()
|
||||
str.make_ascii_lowercase();
|
||||
str
|
||||
} else {
|
||||
"".to_owned()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue