mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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::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(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue