Skip to content

Commit 4809d84

Browse files
committed
fix: some more pipeline clippy errors
1 parent 56efc44 commit 4809d84

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vickyctl/src/locks.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ fn handle_events(
237237
Ok(false)
238238
}
239239

240+
#[allow(dead_code)]
240241
fn get_longest_len<'a, T>(str_iter: T) -> u16
241242
where
242243
T: Iterator<Item = &'a str>,
@@ -285,12 +286,12 @@ fn draw_task_picker(
285286
f.render_stateful_widget(table, f.size(), state);
286287
}
287288

288-
fn draw_confirm_clear(f: &mut Frame, locks: &[PoisonedLock], selected: usize) {
289+
fn draw_confirm_clear(_f: &mut Frame, locks: &[PoisonedLock], selected: usize) {
289290
let lock = locks.get(selected);
290291
if lock.is_none() {
291292
return;
292293
}
293-
let lock = lock.unwrap();
294+
let _lock = lock.unwrap();
294295
todo!()
295296
}
296297

0 commit comments

Comments
 (0)