mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Remove as_slice() calls from script.
This commit is contained in:
parent
ef536372cd
commit
a862479ca8
42 changed files with 115 additions and 124 deletions
|
@ -291,7 +291,7 @@ impl TextInput {
|
|||
}
|
||||
return Selection::NotSelected
|
||||
}
|
||||
match event.Key().as_slice() {
|
||||
match &*event.Key() {
|
||||
"a" if is_control_key(event) => {
|
||||
self.select_all();
|
||||
KeyReaction::Nothing
|
||||
|
@ -304,7 +304,7 @@ impl TextInput {
|
|||
contents = Some(rx.recv().unwrap());
|
||||
}
|
||||
if let Some(contents) = contents {
|
||||
self.insert_string(contents.as_slice());
|
||||
self.insert_string(&contents);
|
||||
}
|
||||
KeyReaction::DispatchInput
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue