diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2015-08-28 00:51:15 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2015-08-30 15:30:00 +0200 |
commit | 105d99084508f72e7ff61a499df5d340e3752f14 (patch) | |
tree | e4e61295ee5e1f5ba459946b37140c0bfef321c6 /components/script/dom/blob.rs | |
parent | 67cbda4be35a63222553ca806d475581030bea4e (diff) | |
download | servo-105d99084508f72e7ff61a499df5d340e3752f14.tar.gz servo-105d99084508f72e7ff61a499df5d340e3752f14.zip |
Replace many uses of to_ascii_lowercase() by make_ascii_lowercase()
Diffstat (limited to 'components/script/dom/blob.rs')
-rw-r--r-- | components/script/dom/blob.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/blob.rs b/components/script/dom/blob.rs index f8102dd9acf..7e101dc4070 100644 --- a/components/script/dom/blob.rs +++ b/components/script/dom/blob.rs @@ -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() } |