Replace many uses of to_ascii_lowercase() by make_ascii_lowercase()

This commit is contained in:
Anthony Ramine 2015-08-28 00:51:15 +02:00
parent 67cbda4be3
commit 105d990845
7 changed files with 32 additions and 23 deletions

View file

@ -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()
}