mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Stop implementing Copy for JS<T>.
A copy of a JS<T> doesn't have the rooting properties of the original, so it makes no sense for it to implement Copy.
This commit is contained in:
parent
9d5f09e09c
commit
88a1cbb28b
7 changed files with 47 additions and 35 deletions
|
@ -758,7 +758,7 @@ impl Activatable for HTMLInputElement {
|
|||
InputType::InputRadio => {
|
||||
// We want to restore state only if the element had been changed in the first place
|
||||
if cache.was_mutable {
|
||||
let old_checked: Option<Root<HTMLInputElement>> = cache.checked_radio.map(|t| t.root());
|
||||
let old_checked = cache.checked_radio.as_ref().map(|t| t.root());
|
||||
let name = self.get_radio_group_name();
|
||||
match old_checked {
|
||||
Some(ref o) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue