Skip to content

TUI

TUI #1

Triggered via push September 15, 2024 20:36
Status Failure
Total duration 3m 43s
Artifacts

ci.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
fmt
Process completed with exit code 1.
unused import: `KeyEventKind`: src/app.rs#L4
warning: unused import: `KeyEventKind` --> src/app.rs:4:56 | 4 | use crossterm::event::{self, Event, KeyCode, KeyEvent, KeyEventKind, KeyModifiers}; | ^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
unused import: `Text`: src/app.rs#L8
warning: unused import: `Text` --> src/app.rs:8:24 | 8 | text::{Line, Span, Text}, | ^^^^
unused imports: `Duration` and `process::Command`: src/app.rs#L12
warning: unused imports: `Duration` and `process::Command` --> src/app.rs:12:11 | 12 | use std::{process::Command, time::{Duration, Instant}}; | ^^^^^^^^^^^^^^^^ ^^^^^^^^
use of deprecated method `ratatui::Frame::<'_>::size`: use .area() as it's the more correct name: src/app.rs#L168
warning: use of deprecated method `ratatui::Frame::<'_>::size`: use .area() as it's the more correct name --> src/app.rs:168:26 | 168 | .split(frame.size()); | ^^^^ | = note: `#[warn(deprecated)]` on by default
use of deprecated method `ratatui::Frame::<'_>::size`: use .area() as it's the more correct name: src/app.rs#L319
warning: use of deprecated method `ratatui::Frame::<'_>::size`: use .area() as it's the more correct name --> src/app.rs:319:48 | 319 | let area = centered_rect(60, 20, frame.size()); | ^^^^
unused variable: `public_key`: src/app.rs#L532
warning: unused variable: `public_key` --> src/app.rs:532:24 | 532 | Ok(public_key) => { | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_public_key` | = note: `#[warn(unused_variables)]` on by default
this `impl` can be derived: src/app.rs#L82
warning: this `impl` can be derived --> src/app.rs:82:1 | 82 | / impl Default for Tab { 83 | | fn default() -> Self { 84 | | Tab::Accounts 85 | | } 86 | | } | |_^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls = note: `#[warn(clippy::derivable_impls)]` on by default = help: remove the manual implementation... help: ...and instead derive it... | 58 + #[derive(Default)] 59 | enum Tab { | help: ...and mark the default variant | 59 ~ #[default] 60 ~ Accounts, |
this `impl` can be derived: src/app.rs#L88
warning: this `impl` can be derived --> src/app.rs:88:1 | 88 | / impl Default for InputMode { 89 | | fn default() -> Self { 90 | | InputMode::Normal 91 | | } 92 | | } | |_^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls = help: remove the manual implementation... help: ...and instead derive it... | 64 + #[derive(Default)] 65 | enum InputMode { | help: ...and mark the default variant | 65 ~ #[default] 66 ~ Normal, |
this import is redundant: src/db.rs#L5
warning: this import is redundant --> src/db.rs:5:1 | 5 | use dirs; | ^^^^^^^^^ help: remove it entirely | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports = note: `#[warn(clippy::single_component_path_imports)]` on by default
struct `SSHKey` is never constructed: src/db.rs#L14
warning: struct `SSHKey` is never constructed --> src/db.rs:14:12 | 14 | pub struct SSHKey { | ^^^^^^ | = note: `#[warn(dead_code)]` on by default