From fcf106b0e3bf3d4cd8022d615eb2867146be8db9 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sun, 1 Nov 2020 14:58:15 -0500 Subject: [PATCH] rename variables --- src/layout.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/layout.rs b/src/layout.rs index 6a9e4b6..7cbd4fb 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -92,11 +92,11 @@ pub fn render( render(frame, chunk, w, queue, status, selected, liststate); } } - Widget::Textbox(xss) => { + Widget::Textbox(xs) => { let mut spans = Vec::new(); flatten( &mut spans, - &xss, + &xs, status, if let Some(Song { pos, .. }) = status.song { queue.get(pos) @@ -109,11 +109,11 @@ pub fn render( ); frame.render_widget(Paragraph::new(Spans::from(spans)), size); } - Widget::TextboxC(xss) => { + Widget::TextboxC(xs) => { let mut spans = Vec::new(); flatten( &mut spans, - &xss, + &xs, status, if let Some(Song { pos, .. }) = status.song { queue.get(pos) @@ -129,11 +129,11 @@ pub fn render( size, ); } - Widget::TextboxR(xss) => { + Widget::TextboxR(xs) => { let mut spans = Vec::new(); flatten( &mut spans, - &xss, + &xs, status, if let Some(Song { pos, .. }) = status.song { queue.get(pos)