Skip to content
Permalink
Browse files

Fix `use UnicodeChar::to_lowercase` warning

  • Loading branch information
mttr committed Jan 8, 2015
1 parent b7a704b commit 9cfd258a211e962301cd3f1f356f1c7995041c18
Showing with 2 additions and 2 deletions.
  1. +2 −2 components/util/str.rs
@@ -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];
@@ -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(),
}
}
}

0 comments on commit 9cfd258

Please sign in to comment.
You can’t perform that action at this time.