Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on: push

env:
CARGO_TERM_COLOR: always
LIBCLANG_PATH: /usr/lib/llvm-14/lib/

jobs:
clippy_check:
Expand All @@ -14,9 +13,21 @@ jobs:
version: [community, enterprise]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- run: rustup component add clippy
- uses: actions-rs/clippy-check@v1

- name: Install deps
run: |
sudo apt-get update -y
sudo apt-get install -y --no-install-recommends libpcsclite-dev libev-dev libevent-dev libpcsclite-dev pkg-config clang llvm llvm-dev libclang-dev

- name: Install rust
uses: dtolnay/rust-toolchain@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1 # v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: Clippy
args: --features=${{ matrix.version }}
toolchain: stable
components: clippy

- name: Clippy check
shell: bash
run: |
set +e
# shellcheck disable=SC2046
cargo clippy --color always --features=${{ matrix.version }}
6 changes: 3 additions & 3 deletions src/encryptable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ use crate::{
/// * The original key will be prefixed with 'encrypted$'.
///
/// * The transformed Encryptable dictionary will contain `alg` property indicating
/// the encryption algorithm, `ciphertext` property whose value is a base-64 string of the
/// encrypted value, and optionally `kid` property indicating the encryption key identifier
/// if specified when returning the result of PropertyEncryptor callback call.
/// the encryption algorithm, `ciphertext` property whose value is a base-64 string of the
/// encrypted value, and optionally `kid` property indicating the encryption key identifier
/// if specified when returning the result of PropertyEncryptor callback call.
///
/// For security reason, a document that contains Encryptable dictionaries will fail
/// to push if their value cannot be encrypted including
Expand Down