lots more fixing of linting issues
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
Chris Cochrun 2026-01-27 15:07:29 -06:00
parent 29c4f9de92
commit 32c49a59a9
14 changed files with 78 additions and 87 deletions

View file

@ -101,13 +101,13 @@ where
Theme: Catalog,
{
/// Creates an empty [`Column`].
#[must_use]
#[must_use]
pub fn new() -> Self {
Self::from_vec(Vec::new())
}
/// Creates a [`Column`] with the given capacity.
#[must_use]
#[must_use]
pub fn with_capacity(capacity: usize) -> Self {
Self::from_vec(Vec::with_capacity(capacity))
}
@ -130,7 +130,7 @@ where
///
/// If any of the children have a [`Length::Fill`] strategy, you will need to
/// call [`Column::width`] or [`Column::height`] accordingly.
#[must_use]
#[must_use]
pub fn from_vec(
children: Vec<Element<'a, Message, Theme, Renderer>>,
) -> Self {
@ -896,7 +896,7 @@ impl Catalog for cosmic::Theme {
}
}
#[must_use]
#[must_use]
pub fn default(theme: &Theme) -> Style {
Style {
scale: 1.05,

View file

@ -95,13 +95,13 @@ where
Theme: Catalog,
{
/// Creates an empty [`Row`].
#[must_use]
#[must_use]
pub fn new() -> Self {
Self::from_vec(Vec::new())
}
/// Creates a [`Row`] with the given capacity.
#[must_use]
#[must_use]
pub fn with_capacity(capacity: usize) -> Self {
Self::from_vec(Vec::with_capacity(capacity))
}
@ -124,7 +124,7 @@ where
///
/// If any of the children have a [`Length::Fill`] strategy, you will need to
/// call [`Row::width`] or [`Row::height`] accordingly.
#[must_use]
#[must_use]
pub fn from_vec(
children: Vec<Element<'a, Message, Theme, Renderer>>,
) -> Self {
@ -257,7 +257,9 @@ where
/// Turns the [`Row`] into a [`Wrapping`] row.
///
/// The original alignment of the [`Row`] is preserved per row wrapped.
pub const fn wrap(self) -> Wrapping<'a, Message, Theme, Renderer> {
pub const fn wrap(
self,
) -> Wrapping<'a, Message, Theme, Renderer> {
Wrapping { row: self }
}
@ -314,8 +316,7 @@ where
}
}
impl<Message, Renderer> Default
for Row<'_, Message, Theme, Renderer>
impl<Message, Renderer> Default for Row<'_, Message, Theme, Renderer>
where
Renderer: renderer::Renderer,
Theme: Catalog,
@ -1044,7 +1045,7 @@ impl Catalog for cosmic::Theme {
}
}
#[must_use]
#[must_use]
pub fn default(theme: &cosmic::Theme) -> Style {
Style {
scale: 1.05,

View file

@ -27,7 +27,7 @@ pub enum Action {
}
impl VerseEditor {
#[must_use]
#[must_use]
pub fn new(verse: VerseName, lyric: String) -> Self {
Self {
verse_name: verse,
@ -50,16 +50,7 @@ impl VerseEditor {
pub fn view(&self) -> Element<Message> {
let cosmic::cosmic_theme::Spacing {
space_none,
space_xxxs,
space_xxs,
space_xs,
space_s,
space_m,
space_l,
space_xl,
space_xxl,
space_xxxl,
space_s, space_m, ..
} = theme::spacing();
let verse_title =