Skip to content

Commit 5d69d80

Browse files
Fix clippy workflow (#40)
1 parent a7a4d8c commit 5d69d80

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

.github/workflows/clippy.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on: push
44

55
env:
66
CARGO_TERM_COLOR: always
7-
LIBCLANG_PATH: /usr/lib/llvm-14/lib/
87

98
jobs:
109
clippy_check:
@@ -14,9 +13,20 @@ jobs:
1413
version: [community, enterprise]
1514
steps:
1615
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
17-
- run: rustup component add clippy
18-
- uses: actions-rs/clippy-check@v1
16+
17+
- name: Install deps
18+
run: |
19+
sudo apt-get update -y
20+
sudo apt-get install -y --no-install-recommends libclang-dev
21+
22+
- name: Install rust
23+
uses: dtolnay/rust-toolchain@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1 # v1
1924
with:
20-
token: ${{ secrets.GITHUB_TOKEN }}
21-
name: Clippy
22-
args: --features=${{ matrix.version }}
25+
toolchain: stable
26+
components: clippy
27+
28+
- name: Clippy check
29+
shell: bash
30+
run: |
31+
# shellcheck disable=SC2046
32+
cargo clippy --color always --features=${{ matrix.version }}

src/encryptable.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ use crate::{
2828
/// * The original key will be prefixed with 'encrypted$'.
2929
///
3030
/// * The transformed Encryptable dictionary will contain `alg` property indicating
31-
/// the encryption algorithm, `ciphertext` property whose value is a base-64 string of the
32-
/// encrypted value, and optionally `kid` property indicating the encryption key identifier
33-
/// if specified when returning the result of PropertyEncryptor callback call.
31+
/// the encryption algorithm, `ciphertext` property whose value is a base-64 string of the
32+
/// encrypted value, and optionally `kid` property indicating the encryption key identifier
33+
/// if specified when returning the result of PropertyEncryptor callback call.
3434
///
3535
/// For security reason, a document that contains Encryptable dictionaries will fail
3636
/// to push if their value cannot be encrypted including

0 commit comments

Comments
 (0)