Skip to content

Commit

Permalink
Use from_iter in rich_text! macro
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Jul 20, 2024
1 parent 68c8d91 commit 4b44079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ macro_rules! rich_text {
$crate::Column::new()
);
($($x:expr),+ $(,)?) => (
$crate::text::Rich::with_spans([$($crate::text::Span::from($x)),+])
$crate::text::Rich::from_iter([$($crate::text::Span::from($x)),+])
);
}

Expand Down

0 comments on commit 4b44079

Please sign in to comment.