chore(semgented_button): fix linter warnings

This commit is contained in:
Michael Aaron Murphy 2024-02-27 18:31:28 +01:00
parent b55fad7e33
commit 9eeaf816dc
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
2 changed files with 3 additions and 4 deletions

View file

@ -3,11 +3,11 @@
//! Implementation details for the vertical layout of a segmented button.
use super::model::{Entity, Model, Selectable};
use super::model::{Model, Selectable};
use super::style::StyleSheet;
use super::widget::{ItemBounds, LocalState, SegmentedButton, SegmentedVariant};
use iced::{Alignment, Length, Rectangle, Size};
use iced::{Length, Rectangle, Size};
use iced_core::layout;
/// A type marker defining the vertical variant of a [`SegmentedButton`].
@ -20,7 +20,6 @@ pub type VerticalSegmentedButton<'a, SelectionMode, Message> =
/// Vertical implementation of the [`SegmentedButton`].
///
/// For details on the model, see the [`segmented_button`](super) module for more details.
#[must_use]
pub fn vertical<SelectionMode, Message>(
model: &Model<SelectionMode>,
) -> SegmentedButton<Vertical, SelectionMode, Message>

View file

@ -24,7 +24,7 @@ pub fn focus<Message: 'static>(id: Id) -> Command<Message> {
Command::widget(operation::focusable::focus(id.0))
}
pub(super) enum ItemBounds {
pub enum ItemBounds {
Button(Entity, Rectangle),
Divider(Rectangle),
}