summaryrefslogtreecommitdiffstats
path: root/src/auth.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/auth.rs')
-rw-r--r--src/auth.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auth.rs b/src/auth.rs
index 44cb20c..c0bd467 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -58,7 +58,7 @@ impl AuthCommand {
Some(key) => key,
None => crate::readline("new key: ").await?.trim().to_string(),
};
- if keys.hosts.get(&user).is_none() {
+ if !keys.hosts.contains_key(&user) {
keys.hosts.insert(
host,
crate::keys::LoginInfo::Application {