mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix use UnicodeChar::to_lowercase
warning
This commit is contained in:
parent
b7a704b416
commit
9cfd258a21
1 changed files with 2 additions and 2 deletions
|
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue