diff --git a/build.rs b/build.rs index 75dacac2..4984a7ea 100644 --- a/build.rs +++ b/build.rs @@ -57,6 +57,6 @@ fn main() { ); bindings .write_to_file(out_path.join("tss2_esys_bindings.rs")) - .expect(&format!("Couldn't write bindings to {:?}!", out_path)); + .unwrap_or_else(|_| panic!("Couldn't write bindings to {:?}!", out_path)); } } diff --git a/src/lib.rs b/src/lib.rs index fec0374b..e44d7f4b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,15 +17,12 @@ const_err, dead_code, improper_ctypes, - legacy_directory_ownership, non_shorthand_field_patterns, no_mangle_generic_items, overflowing_literals, path_statements, patterns_in_fns_without_body, - plugin_as_library, private_in_public, - safe_extern_statics, unconditional_recursion, unused, unused_allocation, diff --git a/tests/all.sh b/tests/all.sh index 61c2d4e6..921a6562 100755 --- a/tests/all.sh +++ b/tests/all.sh @@ -22,7 +22,7 @@ # # Usage: ./tests/all.sh -set -e +set -euf -o pipefail ################################# # Run the TPM simulation server # @@ -34,12 +34,12 @@ tpm2_startup -c -T mssim ################## # Execute clippy # ################## -cargo clippy --all-targets --all-features -- -D warnings +cargo clippy --all-targets --all-features -- -D clippy::all -D clippy::cargo ################### # Build the crate # ################### -cargo build +RUST_BACKTRACE=1 cargo build ############## # Build docs # @@ -49,7 +49,7 @@ cargo doc --no-deps --verbose ################# # Run the tests # ################# -RUST_LOG=info cargo test -- --test-threads=1 --nocapture +RUST_BACKTRACE=1 RUST_LOG=info cargo test -- --test-threads=1 --nocapture ################### # Stop TPM server #