Use from_iter in rich_text! macro

This commit is contained in:
Héctor Ramón Jiménez 2024-07-20 19:54:25 +02:00
parent 68c8d913ef
commit 4b44079f34
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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)),+])
);
}