aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/textinput.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2015-04-23 00:14:02 +0200
committerJosh Matthews <josh@joshmatthews.net>2015-05-05 10:07:34 -0400
commitef8edd4e87aeb3cc71dfd9da2f69437080f5410e (patch)
tree9146cdd7126ead59c57cacbaa04eda0f16761f65 /components/script/textinput.rs
parent7b87085c1880c60aa3be5b3ec4572a0d93fd5537 (diff)
downloadservo-ef8edd4e87aeb3cc71dfd9da2f69437080f5410e.tar.gz
servo-ef8edd4e87aeb3cc71dfd9da2f69437080f5410e.zip
Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.
Diffstat (limited to 'components/script/textinput.rs')
-rw-r--r--components/script/textinput.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/textinput.rs b/components/script/textinput.rs
index 24383bf3fb4..f99f5e8781c 100644
--- a/components/script/textinput.rs
+++ b/components/script/textinput.rs
@@ -14,7 +14,6 @@ use util::str::DOMString;
use std::borrow::ToOwned;
use std::cmp::{min, max};
use std::default::Default;
-use std::num::SignedInt;
use std::sync::mpsc::channel;
#[derive(Copy, Clone, PartialEq)]
@@ -310,7 +309,7 @@ impl TextInput {
},
// printable characters have single-character key values
c if c.len() == 1 => {
- self.insert_char(c.char_at(0));
+ self.insert_char(c.chars().next().unwrap());
KeyReaction::DispatchInput
}
"Space" => {