Skip to content

Commit

Permalink
Merge pull request #168 from bbb651/main
Browse files Browse the repository at this point in the history
Helper Methods Hotfixes
  • Loading branch information
Andrew Wheeler(Genusis) authored Aug 14, 2023
2 parents 3625c14 + 56e1938 commit d2c0441
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/native/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#[allow(unused_imports)]

Check failure on line 5 in src/native/helpers.rs

View workflow job for this annotation

GitHub Actions / all

Diff in /home/runner/work/iced_aw/iced_aw/src/native/helpers.rs
use iced_widget::core::{self, Color, Element};
#[allow(unused_imports)]
use std::{borrow::Cow, hash::Hash};
use std::{borrow::Cow, hash::Hash, fmt::Display};

/// Creates a [`Grid`] with the given children.
///
Expand All @@ -28,10 +28,10 @@ macro_rules! grid {
#[macro_export]
macro_rules! wrap_horizontal {
() => (
$crate::wrap::new()
$crate::Wrap::new()
);
($($x:expr),+ $(,)?) => (
$crate::Grid::with_elements(vec![$($crate::Element::from($x)),+])
$crate::Wrap::with_elements(vec![$($crate::Element::from($x)),+])
);
}

Expand All @@ -42,10 +42,10 @@ macro_rules! wrap_horizontal {
#[macro_export]
macro_rules! wrap_vertical {
() => (
$crate::wrap::new_vertical()
$crate::Wrap::new_vertical()
);
($($x:expr),+ $(,)?) => (
$crate::wrap::with_elements_vertical(vec![$($crate::Element::from($x)),+])
$crate::Wrap::with_elements_vertical(vec![$($crate::Element::from($x)),+])
);
}

Expand Down Expand Up @@ -298,7 +298,6 @@ where
}

#[cfg(feature = "selection_list")]
use std::fmt::Display;
/// Shortcut helper to create a [`SelectionList`] Widget.
///
/// [`SelectionList`]: crate::SelectionList
Expand Down

0 comments on commit d2c0441

Please sign in to comment.