Skip to content

Commit 2c5199c

Browse files
committed
ci: fix lint
1 parent b3254f9 commit 2c5199c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/actions/lint/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ runs:
55
steps:
66
- name: Fmt
77
shell: bash
8-
run: cargo fmt
8+
run: cargo fmt --check
99

1010
- name: Clippy
1111
shell: bash
12-
run: cargo clippy
12+
run: cargo clippy -- -D warnings

src/display/normal.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ pub fn search_post(id_list: &[usize], total_count: usize, rev: bool) {
148148

149149
pub fn println_result<T: Display>(result: &Result<T>) {
150150
match result {
151-
Ok(t) => println!("{}: {}", "Ok", t),
152-
Err(e) => println!("{}: {}", "Err", e),
151+
Ok(t) => println!("Ok: {}", t),
152+
Err(e) => println!("Err: {}", e),
153153
}
154154
}

0 commit comments

Comments
 (0)