diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-10-18 08:40:52 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-10-27 23:07:39 -0700 |
| commit | d640e8515899e552b845cf8f901ebeb126bb12a5 (patch) | |
| tree | 0673402136301a0e640384777e14b755a204d7a1 /src/layout/mod.rs | |
| parent | c8044a9b5dbdb3e0648c86a00bfb63acfc06a559 (diff) | |
| download | niri-d640e8515899e552b845cf8f901ebeb126bb12a5.tar.gz niri-d640e8515899e552b845cf8f901ebeb126bb12a5.tar.bz2 niri-d640e8515899e552b845cf8f901ebeb126bb12a5.zip | |
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.
Diffstat (limited to 'src/layout/mod.rs')
| -rw-r--r-- | src/layout/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
