Skip to content

Commit e376fa8

Browse files
authored
Merge pull request #34 from hug-dev/stronger-lints
Add stronger lints
2 parents 0897b6d + a8c2a36 commit e376fa8

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ fn main() {
5757
);
5858
bindings
5959
.write_to_file(out_path.join("tss2_esys_bindings.rs"))
60-
.expect(&format!("Couldn't write bindings to {:?}!", out_path));
60+
.unwrap_or_else(|_| panic!("Couldn't write bindings to {:?}!", out_path));
6161
}
6262
}

src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,12 @@
1717
const_err,
1818
dead_code,
1919
improper_ctypes,
20-
legacy_directory_ownership,
2120
non_shorthand_field_patterns,
2221
no_mangle_generic_items,
2322
overflowing_literals,
2423
path_statements,
2524
patterns_in_fns_without_body,
26-
plugin_as_library,
2725
private_in_public,
28-
safe_extern_statics,
2926
unconditional_recursion,
3027
unused,
3128
unused_allocation,

tests/all.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#
2323
# Usage: ./tests/all.sh
2424

25-
set -e
25+
set -euf -o pipefail
2626

2727
#################################
2828
# Run the TPM simulation server #
@@ -34,12 +34,12 @@ tpm2_startup -c -T mssim
3434
##################
3535
# Execute clippy #
3636
##################
37-
cargo clippy --all-targets --all-features -- -D warnings
37+
cargo clippy --all-targets --all-features -- -D clippy::all -D clippy::cargo
3838

3939
###################
4040
# Build the crate #
4141
###################
42-
cargo build
42+
RUST_BACKTRACE=1 cargo build
4343

4444
##############
4545
# Build docs #
@@ -49,7 +49,7 @@ cargo doc --no-deps --verbose
4949
#################
5050
# Run the tests #
5151
#################
52-
RUST_LOG=info cargo test -- --test-threads=1 --nocapture
52+
RUST_BACKTRACE=1 RUST_LOG=info cargo test -- --test-threads=1 --nocapture
5353

5454
###################
5555
# Stop TPM server #

0 commit comments

Comments
 (0)