Skip to content

Commit 51e8b71

Browse files
committed
Update dependencies and clippy
1 parent d5bf4ec commit 51e8b71

5 files changed

Lines changed: 23 additions & 9 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

validation/local_ping_pong_openssl/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
check:
2+
cargo clippy --all-targets --all-features -- -D warnings
3+
4+
clean:
5+
rm -rf ./target
6+
7+
fix:
8+
cargo fix --allow-dirty
9+
cargo clippy --fix --allow-dirty
10+
cargo fmt
11+
12+
test:
13+
cargo test
14+
15+
.PHONY: check clean fix test

validation/local_ping_pong_openssl/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fn check_gen_certs() {
4141
Command::new("make")
4242
.arg("rsa4096")
4343
.current_dir(out_dir)
44-
.spawn()
44+
.status()
4545
.expect("make rsa4096");
4646
}
4747
}

validation/local_ping_pong_openssl/src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ mod test {
1515
use std::thread;
1616
use std::time::Duration;
1717

18-
const CA_CERT: &'static str = "ca.rsa4096.crt";
19-
const CERT: &'static str = "rustcryp.to.rsa4096.ca_signed.crt";
20-
const RSA_KEY: &'static str = "rustcryp.to.rsa4096.key";
18+
const CA_CERT: &str = "ca.rsa4096.crt";
19+
const CERT: &str = "rustcryp.to.rsa4096.ca_signed.crt";
20+
const RSA_KEY: &str = "rustcryp.to.rsa4096.key";
2121

2222
#[test]
2323
fn vs_openssl_as_client_autoneg() {
@@ -148,7 +148,6 @@ mod test {
148148
let mut rustls_client = RustCryptoTlsClient::new(path_certs.join(CA_CERT), server_addr);
149149
rustls_client.ping();
150150
assert_eq!(rustls_client.wait_pong(), "PONG\n");
151-
return;
152151
});
153152

154153
// Canary Timeout thread

0 commit comments

Comments
 (0)