Skip to content

Commit 8e8ab2e

Browse files
committed
style: changed symbol names
1 parent e3cab38 commit 8e8ab2e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/app/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub struct App {
2424

2525
/// Alternates with every wave of connection tests.
2626
/// Used for displaying update progress.
27-
pub updated: Arc<Mutex<bool>>,
27+
pub clk: Arc<Mutex<bool>>,
2828

2929
/// Indicates if the user has begun quitting the app.
3030
is_closing: bool,

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fn start_app<B: Backend>(
6363
app: &mut App,
6464
) -> io::Result<()> {
6565
let conns = Arc::clone(&app.connections);
66-
let upd = app.updated.clone();
66+
let clk = app.clk.clone();
6767

6868
thread::spawn(move || {
6969
loop {
@@ -77,7 +77,7 @@ fn start_app<B: Backend>(
7777
});
7878
}
7979

80-
*upd.lock().unwrap() ^= true;
80+
*clk.lock().unwrap() ^= true;
8181

8282
thread::sleep(Duration::from_secs(5));
8383
}

src/ui/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ pub fn ui(f: &mut Frame, app: &App) {
2020
SelectedTab::Log => tab::render_tab_log(f, app),
2121
}
2222

23-
let upd_str = if *app.updated.lock().unwrap() {
23+
let clk_str = if *app.clk.lock().unwrap() {
2424
"██ "
2525
} else {
2626
" ██"
2727
};
2828

29-
let upd_block = Block::bordered();
29+
let clk_block = Block::bordered();
3030

3131
f.render_widget(
32-
widgets::Paragraph::new(upd_str).block(upd_block),
32+
widgets::Paragraph::new(clk_str).block(clk_block),
3333
Rect::new(f.area().width - 6, f.area().height - 3, 6, 3),
3434
);
3535
}

0 commit comments

Comments
 (0)