mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Remove remaining as_slice / as_mut_slice calls.
This commit is contained in:
parent
903305416a
commit
024323004d
3 changed files with 4 additions and 4 deletions
|
@ -854,7 +854,7 @@ impl<'a> Activatable for JSRef<'a, HTMLInputElement> {
|
|||
.filter_map(HTMLInputElementCast::to_temporary)
|
||||
.filter(|input| {
|
||||
let input = input.root();
|
||||
input.r().form_owner() == owner && match input.r().Type().as_slice() {
|
||||
input.r().form_owner() == owner && match &*input.r().Type() {
|
||||
"text" | "search" | "url" | "tel" |
|
||||
"email" | "password" | "datetime" |
|
||||
"date" | "month" | "week" | "time" |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue