Skip to content

Commit 23576ad

Browse files
Fix formatting and move formatting to its own action
1 parent 5efcdca commit 23576ad

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

.github/workflows/default.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -71,24 +71,6 @@ jobs:
7171
- name: test
7272
run: cargo test --workspace --verbose
7373

74-
rustfmt:
75-
name: rustfmt
76-
runs-on: ubuntu-latest
77-
steps:
78-
- name: checkout_repository
79-
uses: actions/checkout@v1
80-
with:
81-
fetch-depth: 1
82-
- name: install_rust
83-
uses: hecrj/setup-rust-action@v1
84-
with:
85-
rust-version: stable
86-
- name: install_rustfmt
87-
run: rustup component add rustfmt
88-
- name: Check formatting
89-
run: |
90-
cargo fmt -- --check
91-
9274
clippy:
9375
name: clippy
9476
runs-on: ubuntu-latest

.github/workflows/format.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Default
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
CARGO_TERM_COLOR: always
7+
8+
jobs:
9+
rustfmt:
10+
name: rustfmt
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: checkout_repository
14+
uses: actions/checkout@v1
15+
with:
16+
fetch-depth: 1
17+
- name: install_rust
18+
uses: hecrj/setup-rust-action@v1
19+
with:
20+
rust-version: stable
21+
- name: install_rustfmt
22+
run: rustup component add rustfmt
23+
- name: Check formatting
24+
run: |
25+
cargo fmt -- --check

src/question/multi_select/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ impl widgets::List for MultiSelect<'_> {
153153
write!(b, " ")?;
154154
}
155155

156-
157156
if hovered {
158157
b.set_fg(Color::Cyan)?;
159158
} else {

0 commit comments

Comments
 (0)