diff options
| author | Fuwn <[email protected]> | 2022-07-24 21:18:07 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-07-24 21:18:07 +0000 |
| commit | 86573a2111edbf7b0368226f2d378335f8aa582a (patch) | |
| tree | 5bcc1243a723d908228c86687999eb9a934d429d /src | |
| parent | feat(src): ui overhaul (bollux inspired) (diff) | |
| download | sydney-0.1.9.tar.xz sydney-0.1.9.zip | |
refactor: docs and formatv0.1.9
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 1 | ||||
| -rw-r--r-- | src/ui.rs | 12 |
2 files changed, 4 insertions, 9 deletions
diff --git a/src/main.rs b/src/main.rs index 060ca08..ab628f8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,7 +26,6 @@ clippy::nursery, clippy::pedantic )] -#![feature(iter_advance_by)] #![recursion_limit = "128"] mod app; @@ -139,14 +139,10 @@ pub fn ui<B: tui::backend::Backend>( text, alt_text, } => { - let mut span_list = vec![]; - - span_list.push(Span::styled( - "``` ", - Style::default().fg(Color::LightBlue), - )); - span_list - .push(Span::from(alt_text.unwrap_or_else(|| "".to_string()))); + let mut span_list = vec![ + Span::styled("``` ", Style::default().fg(Color::LightBlue)), + Span::from(alt_text.unwrap_or_else(|| "".to_string())), + ]; if text != "sydney_abc_123" { span_list.push(Span::from(text)); |