Skip to content

Commit

Permalink
Fail linting on warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
apognu committed Oct 17, 2024
1 parent 754c25f commit ed7f494
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Lint
run: |
cargo clippy
cargo clippy --release
cargo clippy -D warnings
cargo clippy --release -- -D warnings
test:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Lint
run: |
cargo clippy
cargo clippy --release
cargo clippy -D warnings
cargo clippy --release -- -D warnings
test:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Lint
run: |
cargo clippy
cargo clippy --release
cargo clippy -D warnings
cargo clippy --release -- -D warnings
test:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Lint
run: |
cargo clippy
cargo clippy --release
cargo clippy -D warnings
cargo clippy --release -- -D warnings
test:
runs-on: ubuntu-latest
Expand Down
8 changes: 2 additions & 6 deletions src/ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,14 @@ use sessions::SessionSource;
use tokio::sync::RwLock;
use tui::{
layout::{Alignment, Constraint, Direction, Layout},
style::{Modifier, Style},
style::Modifier,
text::{Line, Span},
widgets::Paragraph,
Frame as CrosstermFrame, Terminal,
};
use util::buttonize;

use crate::{
info::capslock_status,
ui::util::{should_hide_cursor, titleize},
Greeter, Mode,
};
use crate::{info::capslock_status, ui::util::should_hide_cursor, Greeter, Mode};

use self::common::style::{Theme, Themed};
pub use self::i18n::MESSAGES;
Expand Down

0 comments on commit ed7f494

Please sign in to comment.