chore(semgented_button): fix linter warnings
This commit is contained in:
parent
b55fad7e33
commit
9eeaf816dc
2 changed files with 3 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue