diff --git a/packages/ciphernode/cipher/src/password_manager.rs b/packages/ciphernode/cipher/src/password_manager.rs index 7f30866d..8229e812 100644 --- a/packages/ciphernode/cipher/src/password_manager.rs +++ b/packages/ciphernode/cipher/src/password_manager.rs @@ -57,7 +57,7 @@ impl PasswordManager for EnvPasswordManager { } fn is_set(&self) -> bool { - self.0 == None + self.0.is_some() } } @@ -80,7 +80,7 @@ impl PasswordManager for InMemPasswordManager { } fn is_set(&self) -> bool { - self.0 == None + self.0.is_some() } }