From 7cb12e3c3b62871953a35cee55499b52fddb9944 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 5 Sep 2024 14:46:11 +0200 Subject: Flag `lazy` feature types directly Co-authored-by: JL710 <76447362+JL710@users.noreply.github.com> --- widget/src/lazy/component.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'widget/src/lazy/component.rs') diff --git a/widget/src/lazy/component.rs b/widget/src/lazy/component.rs index 1bf04195..1ec07e37 100644 --- a/widget/src/lazy/component.rs +++ b/widget/src/lazy/component.rs @@ -30,6 +30,7 @@ use std::rc::Rc; /// /// Additionally, a [`Component`] is capable of producing a `Message` to notify /// the parent application of any relevant interactions. +#[cfg(feature = "lazy")] pub trait Component { /// The internal state of this [`Component`]. type State: Default; -- cgit