Fix unused import in release mode

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier 2022-12-26 15:15:33 +01:00
parent 9ec7a0a2ce
commit 2f1ea7f8da
No known key found for this signature in database
1 changed files with 1 additions and 2 deletions

View File

@ -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.