diff options
Diffstat (limited to 'examples/tour')
-rw-r--r-- | examples/tour/src/main.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs index 0dd588fe..fad5f0b1 100644 --- a/examples/tour/src/main.rs +++ b/examples/tour/src/main.rs @@ -357,11 +357,10 @@ impl Tour { Self::container("Toggler") .push("A toggler is mostly used to enable or disable something.") .push( - Container::new(toggler( - Some("Toggle me to continue..."), - self.toggler, - Message::TogglerChanged, - )) + Container::new( + toggler(Some("Toggle me to continue..."), self.toggler) + .on_toggle(Message::TogglerChanged), + ) .padding([0, 40]), ) } |