summaryrefslogtreecommitdiffstats
path: root/openpgp/src
diff options
context:
space:
mode:
authorKai Michaelis <kai@sequoia-pgp.org>2018-11-16 13:44:02 +0100
committerKai Michaelis <kai@sequoia-pgp.org>2018-11-16 13:44:02 +0100
commitb997ed4da4552873ce90ecb0f11fc3d76c8e38c6 (patch)
treeeda81a1ce5b25f9b7010320c2a914d53cf7f8bab /openpgp/src
parent958d9ef93ab0c782c9307df858b1e308467c2c0f (diff)
openpgp: it's cfg!(debug_assertions) not debug
Whoopsie
Diffstat (limited to 'openpgp/src')
-rw-r--r--openpgp/src/crypto/mod.rs4
-rw-r--r--openpgp/src/crypto/mpis.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/src/crypto/mod.rs b/openpgp/src/crypto/mod.rs
index bc1e2723..19ab7984 100644
--- a/openpgp/src/crypto/mod.rs
+++ b/openpgp/src/crypto/mod.rs
@@ -63,7 +63,7 @@ impl Drop for SessionKey {
impl fmt::Debug for SessionKey {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- if cfg!(debug) {
+ if cfg!(debug_assertions) {
write!(f, "SessionKey ({:?})", self.0)
} else {
f.write_str("SessionKey ( <Redacted> )")
@@ -119,7 +119,7 @@ impl Drop for Password {
impl fmt::Debug for Password {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- if cfg!(debug) {
+ if cfg!(debug_assertions) {
write!(f, "Password ({:?})", self.0)
} else {
f.write_str("Password ( <Redacted> )")
diff --git a/openpgp/src/crypto/mpis.rs b/openpgp/src/crypto/mpis.rs
index b6bedc3f..b2856152 100644
--- a/openpgp/src/crypto/mpis.rs
+++ b/openpgp/src/crypto/mpis.rs
@@ -343,7 +343,7 @@ pub enum SecretKey {
impl fmt::Debug for SecretKey {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- if cfg!(debug) {
+ if cfg!(debug_assertions) {
match self {
&SecretKey::RSA{ ref d, ref p, ref q, ref u } =>
write!(f, "RSA {{ d: {:?}, p: {:?}, q: {:?}, u: {:?} }}", d, p, q, u),