Skip to content

Commit

Permalink
Update pre-commit hooks and fix clippy lints (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde authored Sep 9, 2024
1 parent 14fa1ae commit 92c216a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.16.0
rev: v9.17.0
hooks:
- id: commitlint
stages:
- commit-msg
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.13.0
rev: v0.14.0
hooks:
- id: markdownlint-cli2
- repo: https://github.com/shellcheck-py/shellcheck-py
Expand All @@ -44,7 +44,7 @@ repos:
- id: codespell
args: [--ignore-words=.codespellignore]
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.29.1
rev: 0.29.2
hooks:
- id: check-github-actions
- id: check-github-workflows
Expand Down
2 changes: 1 addition & 1 deletion src/codec/rtu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ fn calc_crc(data: &[u8]) -> u16 {
}
}
}
crc << 8 | crc >> 8
crc.rotate_right(8)
}

fn check_crc(adu_data: &[u8], expected_crc: u16) -> Result<()> {
Expand Down

0 comments on commit 92c216a

Please sign in to comment.