Fix unused import in release mode
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
parent
9ec7a0a2ce
commit
2f1ea7f8da
|
|
@ -401,12 +401,11 @@ impl sqlite::BindableWithIndex for &PublicKey {
|
||||||
|
|
||||||
pub mod keypair {
|
pub mod keypair {
|
||||||
use super::*;
|
use super::*;
|
||||||
use std::env;
|
|
||||||
|
|
||||||
/// Generate a new keypair using OS randomness.
|
/// Generate a new keypair using OS randomness.
|
||||||
pub fn generate() -> KeyPair {
|
pub fn generate() -> KeyPair {
|
||||||
#[cfg(debug_assertions)]
|
#[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.
|
// Generate a test keypair that is always the same.
|
||||||
// This is useful for debugging and testing, since the
|
// This is useful for debugging and testing, since the
|
||||||
// public key is known in advance.
|
// public key is known in advance.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue