From 2f1ea7f8dae064dc873256e425cdf8e926cd674b Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Mon, 26 Dec 2022 15:15:33 +0100 Subject: [PATCH] Fix unused import in release mode Signed-off-by: Alexis Sellier --- radicle-crypto/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/radicle-crypto/src/lib.rs b/radicle-crypto/src/lib.rs index e14f7ed3..085ff60a 100644 --- a/radicle-crypto/src/lib.rs +++ b/radicle-crypto/src/lib.rs @@ -401,12 +401,11 @@ impl sqlite::BindableWithIndex for &PublicKey { pub mod keypair { use super::*; - use std::env; /// Generate a new keypair using OS randomness. pub fn generate() -> KeyPair { #[cfg(debug_assertions)] - if env::var("RAD_DEBUG").is_ok() { + if std::env::var("RAD_DEBUG").is_ok() { // Generate a test keypair that is always the same. // This is useful for debugging and testing, since the // public key is known in advance.