Skip to content

Commit

Permalink
add Copy impl to FullyKeyedState
Browse files Browse the repository at this point in the history
  • Loading branch information
WorldSEnder committed May 24, 2022
1 parent 1ea2411 commit 8b2d8de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/yew/src/virtual_dom/vlist.rs
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8b2d8de

Please sign in to comment.