File tree 3 files changed +5
-8
lines changed 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,6 @@ fn main() {
57
57
) ;
58
58
bindings
59
59
. 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) ) ;
61
61
}
62
62
}
Original file line number Diff line number Diff line change 17
17
const_err,
18
18
dead_code,
19
19
improper_ctypes,
20
- legacy_directory_ownership,
21
20
non_shorthand_field_patterns,
22
21
no_mangle_generic_items,
23
22
overflowing_literals,
24
23
path_statements,
25
24
patterns_in_fns_without_body,
26
- plugin_as_library,
27
25
private_in_public,
28
- safe_extern_statics,
29
26
unconditional_recursion,
30
27
unused,
31
28
unused_allocation,
Original file line number Diff line number Diff line change 22
22
#
23
23
# Usage: ./tests/all.sh
24
24
25
- set -e
25
+ set -euf -o pipefail
26
26
27
27
# ################################
28
28
# Run the TPM simulation server #
@@ -34,12 +34,12 @@ tpm2_startup -c -T mssim
34
34
# #################
35
35
# Execute clippy #
36
36
# #################
37
- cargo clippy --all-targets --all-features -- -D warnings
37
+ cargo clippy --all-targets --all-features -- -D clippy::all -D clippy::cargo
38
38
39
39
# ##################
40
40
# Build the crate #
41
41
# ##################
42
- cargo build
42
+ RUST_BACKTRACE=1 cargo build
43
43
44
44
# #############
45
45
# Build docs #
@@ -49,7 +49,7 @@ cargo doc --no-deps --verbose
49
49
# ################
50
50
# Run the tests #
51
51
# ################
52
- RUST_LOG=info cargo test -- --test-threads=1 --nocapture
52
+ RUST_BACKTRACE=1 RUST_LOG=info cargo test -- --test-threads=1 --nocapture
53
53
54
54
# ##################
55
55
# Stop TPM server #
You can’t perform that action at this time.
0 commit comments