Use from_iter in rich_text! macro
This commit is contained in:
parent
68c8d913ef
commit
4b44079f34
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ macro_rules! rich_text {
|
||||||
$crate::Column::new()
|
$crate::Column::new()
|
||||||
);
|
);
|
||||||
($($x:expr),+ $(,)?) => (
|
($($x:expr),+ $(,)?) => (
|
||||||
$crate::text::Rich::with_spans([$($crate::text::Span::from($x)),+])
|
$crate::text::Rich::from_iter([$($crate::text::Span::from($x)),+])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue