From 757e078e0b6e53b74d14f29581e5c55257770b5d Mon Sep 17 00:00:00 2001 From: Bryan Hyland Date: Mon, 18 Nov 2024 12:03:47 -0800 Subject: [PATCH] Updated SpinButton::new() and enum Orientation to be private --- src/widget/mod.rs | 2 +- src/widget/spin_button/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/widget/mod.rs b/src/widget/mod.rs index 7f474ac1..78d8f43e 100644 --- a/src/widget/mod.rs +++ b/src/widget/mod.rs @@ -311,7 +311,7 @@ pub mod settings; pub mod spin_button; #[doc(inline)] -pub use spin_button::{spin_button, vertical}; +pub use spin_button::{spin_button, vertical, SpinButton}; pub mod tab_bar; diff --git a/src/widget/spin_button/mod.rs b/src/widget/spin_button/mod.rs index 60c96064..8f035b3c 100644 --- a/src/widget/spin_button/mod.rs +++ b/src/widget/spin_button/mod.rs @@ -25,7 +25,7 @@ use crate::{ }; #[derive(Clone, Copy)] -pub enum Orientation { +enum Orientation { Horizontal, Vertical, } @@ -60,7 +60,7 @@ where T: Add + Sub + PartialEq + PartialOrd + Display + Copy { /// Create a new new button - pub fn new( + fn new( label: impl Into, step: T, value: T,