Fix use UnicodeChar::to_lowercase warning

This commit is contained in:
Matthew Rasmus 2015-01-07 20:45:44 -08:00
parent b7a704b416
commit 9cfd258a21

View file

@ -9,7 +9,7 @@ use std::ascii::AsciiExt;
use std::iter::Filter; use std::iter::Filter;
use std::num::Int; use std::num::Int;
use std::str::{CharEq, CharSplits, FromStr}; use std::str::{CharEq, CharSplits, FromStr};
use unicode::char::to_lowercase; use unicode::char::UnicodeChar;
pub type DOMString = String; pub type DOMString = String;
pub type StaticCharVec = &'static [char]; pub type StaticCharVec = &'static [char];
@ -328,7 +328,7 @@ pub struct LowercaseString {
impl LowercaseString { impl LowercaseString {
pub fn new(s: &str) -> LowercaseString { pub fn new(s: &str) -> LowercaseString {
LowercaseString { LowercaseString {
inner: s.chars().map(to_lowercase).collect(), inner: s.chars().map(|c| c.to_lowercase()).collect(),
} }
} }
} }