From 93068836182cb2a6527a267453f280eb5c0d34a3 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 18 Sep 2024 21:19:33 +0200 Subject: Fix order of `Program::theme` implementation --- src/program.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/program.rs b/src/program.rs index 68efab88..94cb9a7d 100644 --- a/src/program.rs +++ b/src/program.rs @@ -570,14 +570,6 @@ pub fn with_executor( type Renderer = P::Renderer; type Executor = E; - fn theme( - &self, - state: &Self::State, - window: window::Id, - ) -> Self::Theme { - self.program.theme(state, window) - } - fn title(&self, state: &Self::State, window: window::Id) -> String { self.program.title(state, window) } @@ -605,6 +597,14 @@ pub fn with_executor( self.program.subscription(state) } + fn theme( + &self, + state: &Self::State, + window: window::Id, + ) -> Self::Theme { + self.program.theme(state, window) + } + fn style( &self, state: &Self::State, -- cgit