Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix use UnicodeChar::to_lowercase warning
  • Loading branch information
mttr committed Jan 8, 2015
1 parent b7a704b commit 9cfd258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/util/str.rs
Expand Up @@ -9,7 +9,7 @@ use std::ascii::AsciiExt;
use std::iter::Filter;
use std::num::Int;
use std::str::{CharEq, CharSplits, FromStr};
use unicode::char::to_lowercase;
use unicode::char::UnicodeChar;

pub type DOMString = String;
pub type StaticCharVec = &'static [char];
Expand Down Expand Up @@ -328,7 +328,7 @@ pub struct LowercaseString {
impl LowercaseString {
pub fn new(s: &str) -> LowercaseString {
LowercaseString {
inner: s.chars().map(to_lowercase).collect(),
inner: s.chars().map(|c| c.to_lowercase()).collect(),
}
}
}
Expand Down

0 comments on commit 9cfd258

Please sign in to comment.