diff options
| author | Stefan Kreutz <mail@skreutz.com> | 2022-09-08 15:32:41 +0200 | 
|---|---|---|
| committer | Stefan Kreutz <mail@skreutz.com> | 2022-09-08 15:32:41 +0200 | 
| commit | dc29c1ed4a08f79d8c8e48208b2ced540aceb926 (patch) | |
| tree | f9b13eec2bc411e7de6cf384820adbfedd1badd5 | |
| parent | 3de43b4596811c696757c87091ff1ba13c1eff1a (diff) | |
| download | wpa-psk-dc29c1ed4a08f79d8c8e48208b2ced540aceb926.tar | |
Forbid unsafe code
| -rw-r--r-- | wpa-psk-cli/src/bin/wpa-psk.rs | 2 | ||||
| -rw-r--r-- | wpa-psk/src/lib.rs | 2 | 
2 files changed, 4 insertions, 0 deletions
diff --git a/wpa-psk-cli/src/bin/wpa-psk.rs b/wpa-psk-cli/src/bin/wpa-psk.rs index 181585c..baa0337 100644 --- a/wpa-psk-cli/src/bin/wpa-psk.rs +++ b/wpa-psk-cli/src/bin/wpa-psk.rs @@ -1,3 +1,5 @@ +#![forbid(unsafe_code)] +  use std::process::exit;  use clap::Parser; diff --git a/wpa-psk/src/lib.rs b/wpa-psk/src/lib.rs index 58cf7ce..56bbf11 100644 --- a/wpa-psk/src/lib.rs +++ b/wpa-psk/src/lib.rs @@ -25,6 +25,8 @@  //! assert_eq!(bytes_to_hex(&psk), "cb5de4e4d23b2ab0bf5b9ba0fe8132c1e2af3bb52298ec801af8ad520cea3437");  //! ``` +#![forbid(unsafe_code)] +  use std::{error::Error, fmt::Display};  use hmac::Hmac;  |