From 20366698a6b5426f4b664faa1f0bef37f1457f0c Mon Sep 17 00:00:00 2001 From: Jonathan Johnson Date: Wed, 28 Aug 2024 07:03:56 -0700 Subject: [PATCH] Clippy Apparently I had missed some warnings due to how I was editing this through another project using Cushy. --- src/widgets/collapse.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/widgets/collapse.rs b/src/widgets/collapse.rs index 2e2e9367b..d11d6102b 100644 --- a/src/widgets/collapse.rs +++ b/src/widgets/collapse.rs @@ -6,7 +6,7 @@ use figures::{Size, Zero}; use crate::animation::{AnimationHandle, AnimationTarget, Spawn}; use crate::context::LayoutContext; use crate::styles::components::{EasingIn, EasingOut}; -use crate::value::{Destination, Dynamic, Generation, IntoDynamic, Source}; +use crate::value::{Dynamic, Generation, IntoDynamic, Source}; use crate::widget::{MakeWidget, WidgetInstance, WidgetRef, WrappedLayout, WrapperWidget}; use crate::ConstraintLimit; @@ -65,7 +65,6 @@ impl Collapse { } else { (context.get(&EasingIn), size) }; - if generation == self.collapse_generation {} match &self.collapse_animation { Some(state) if state.target == target => {} Some(_) if generation == self.collapse_generation => {