From d640e8515899e552b845cf8f901ebeb126bb12a5 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 18 Oct 2024 08:40:52 +0300 Subject: Require Clone for LayoutElement::Id Now that we have MappedId, this could really be Copy. But it's quite a big refactor, so for now just require Clone as I'll need it. --- src/layout/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/layout') diff --git a/src/layout/mod.rs b/src/layout/mod.rs index e72da2d0..3e6affb1 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -100,7 +100,7 @@ pub enum ConfigureIntent { pub trait LayoutElement { /// Type that can be used as a unique ID of this element. - type Id: PartialEq + std::fmt::Debug; + type Id: PartialEq + std::fmt::Debug + Clone; /// Unique ID of this element. fn id(&self) -> &Self::Id; -- cgit