Skip to content

Commit 8603a68

Browse files
committed
Fail on lint warnings, fix outstanding warning
Signed-off-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
1 parent 144fe24 commit 8603a68

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
SOFTHSM2_CONF: /tmp/softhsm2.conf
7272
TARGET: ${{ matrix.target }}
7373
RUST_BACKTRACE: 1
74+
RUSTFLAGS: "-D warnings"
7475
run: ./ci.sh
7576

7677
tests-kryoptic:
@@ -90,7 +91,6 @@ jobs:
9091
RUST_BACKTRACE=1 cargo build --all-features &&
9192
RUST_BACKTRACE=1 cargo test
9293
93-
9494
build-msrv:
9595
name: MSRV - Execute CI script
9696
runs-on: ubuntu-latest
@@ -107,10 +107,10 @@ jobs:
107107
name: Check links
108108
runs-on: ubuntu-latest
109109
steps:
110-
- uses: actions/checkout@v4
111-
- name: Link Checker
112-
uses: peter-evans/link-checker@v1
113-
with:
114-
args: -v -r *.md
115-
- name: Fail if there were link errors
116-
run: exit ${{ steps.lc.outputs.exit_code }}
110+
- uses: actions/checkout@v4
111+
- name: Link Checker
112+
uses: peter-evans/link-checker@v1
113+
with:
114+
args: -v -r *.md
115+
- name: Fail if there were link errors
116+
run: exit ${{ steps.lc.outputs.exit_code }}

cryptoki/tests/basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ fn get_attribute_info_test() -> TestResult {
11971197
session.generate_key_pair(&mechanism, &pub_key_template, &priv_key_template)?;
11981198

11991199
let pub_attribs = vec![AttributeType::PublicExponent, AttributeType::Modulus];
1200-
let mut priv_attribs = [
1200+
let priv_attribs = [
12011201
AttributeType::PublicExponent,
12021202
AttributeType::Modulus,
12031203
AttributeType::PrivateExponent,

0 commit comments

Comments
 (0)