mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use chars().count() rather than char_len().
The latter is obsolete in current Rust.
This commit is contained in:
parent
faefb27f3e
commit
024571dfa3
5 changed files with 9 additions and 9 deletions
|
@ -161,7 +161,7 @@ impl LayoutHTMLInputElementHelpers for JS<HTMLInputElement> {
|
|||
InputType::InputReset => get_raw_attr_value(self).unwrap_or_else(|| DEFAULT_RESET_VALUE.to_owned()),
|
||||
InputType::InputPassword => {
|
||||
let raw = get_raw_textinput_value(self);
|
||||
String::from_char(raw.char_len(), '●')
|
||||
raw.chars().map(|_| '●').collect()
|
||||
}
|
||||
_ => get_raw_textinput_value(self),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue