From fb243f36f9ba73471f2ce09f642e7a52f060ffd9 Mon Sep 17 00:00:00 2001 From: Michelle Granat Date: Mon, 7 Oct 2024 09:02:12 +0300 Subject: [PATCH] Fixed docs to pass tests --- widget/src/button.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/widget/src/button.rs b/widget/src/button.rs index 276a3d3fb4..a3394a013a 100644 --- a/widget/src/button.rs +++ b/widget/src/button.rs @@ -514,6 +514,9 @@ impl Default for Style { /// /// # Example /// ```no_run +/// # use iced_widget::core::{Color, Background}; +/// # use iced_widget::button::{Catalog, Status, Style}; +/// # struct MyTheme; /// #[derive(Debug, Default)] /// pub enum ButtonClass { /// #[default]