Skip to content

Commit

Permalink
Add clippy and format checks
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenn committed Apr 17, 2021
1 parent 348361b commit 8f4d253
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
default: true
profile: minimal
toolchain: stable
components: rustfmt, clippy
override: true
- name: Build
run: cargo build --workspace --all-targets
Expand All @@ -38,6 +39,10 @@ jobs:
- name: Test features
if: matrix.os != 'windows-latest'
run: cargo test --workspace --all-targets --all-features
- name: Clippy
run: cargo clippy --workspace -- -D warnings
- name: Format
run: cargo fmt --all -- --check

env:
RUST_BACKTRACE: 1
2 changes: 1 addition & 1 deletion src/binding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const END: u32 = HOME + 1;
const DELETE: u32 = END + 1;
const INSERT: u32 = DELETE + 1;
//const F1: u32 = INSERT + 1;
const MOUSE: u32 = /*F24 + 1*/ INSERT + 25;
const MOUSE: u32 = /* F24 + 1 */ INSERT + 25;
const PASTE_START: u32 = MOUSE + 1;
const PASTE_FINISH: u32 = PASTE_START + 1;
const ANY: u32 = PASTE_FINISH + 1;
Expand Down

0 comments on commit 8f4d253

Please sign in to comment.