Skip to content

Add stronger lints #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 4, 2020
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions tests/all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#
# Usage: ./tests/all.sh

set -e
set -euf -o pipefail

#################################
# Run the TPM simulation server #
Expand All @@ -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 #
Expand All @@ -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 #
Expand Down