From 8b2d8de105c751acdb995764c45a2e86df1bd447 Mon Sep 17 00:00:00 2001 From: Martin Molzer Date: Tue, 24 May 2022 22:46:30 +0200 Subject: [PATCH] add Copy impl to FullyKeyedState --- packages/yew/src/virtual_dom/vlist.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/yew/src/virtual_dom/vlist.rs b/packages/yew/src/virtual_dom/vlist.rs index f33fda1dea2..468b032d6d3 100644 --- a/packages/yew/src/virtual_dom/vlist.rs +++ b/packages/yew/src/virtual_dom/vlist.rs @@ -3,7 +3,7 @@ use std::ops::{Deref, DerefMut}; use super::{Key, VNode}; -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] enum FullyKeyedState { KnownFullyKeyed, KnownMissingKeys, @@ -95,7 +95,7 @@ impl VList { /// Recheck, if the all the children have keys. /// /// You can run this, after modifying the child list through the [DerefMut] implementation of - /// [VList], to precompute this internal + /// [VList], to precompute an internally kept flag, which speeds up reconciliation later. pub fn recheck_fully_keyed(&mut self) { self.fully_keyed = if self.fully_keyed() { FullyKeyedState::KnownFullyKeyed