Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix unused import in release mode
Alexis Sellier committed 3 years ago
commit 2f1ea7f8dae064dc873256e425cdf8e926cd674b
parent 9ec7a0a2ceb73c03c9e2ce31a1584a1472798408
1 file changed +1 -2
modified 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.