ratatui / ratatui-macros

Macros for simplifying boilerplate for creating UI using Ratatui.
https://ratatui.rs
MIT License
24 stars 2 forks source link

feat: allow span macro to accept a bare expression #61

Closed joshka closed 2 months ago

joshka commented 2 months ago

This makes it possible to pass an expression directly to the span! macro, which will be formatted into the display representation of the expression using the format! macro.

let number = 123;
let test = "test";
span!(number);
span!(test);