summaryrefslogtreecommitdiff
path: root/src/knownhosts.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/knownhosts.rs')
-rw-r--r--src/knownhosts.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/knownhosts.rs b/src/knownhosts.rs
index 4a6c78d..d5d93c5 100644
--- a/src/knownhosts.rs
+++ b/src/knownhosts.rs
@@ -39,11 +39,7 @@ use util::{self, Binding, SessionBinding};
///
/// println!("adding {} to the known hosts", host);
///
-/// known_hosts.add(host, key, host, match key_type {
-/// HostKeyType::Rsa => KnownHostKeyFormat::SshRsa,
-/// HostKeyType::Dss => KnownHostKeyFormat::SshDss,
-/// HostKeyType::Unknown => panic!("unknown type of key!"),
-/// }).unwrap();
+/// known_hosts.add(host, key, host, key_type.into()).unwrap();
/// known_hosts.write_file(&file, KnownHostFileKind::OpenSSH).unwrap();
/// }
/// ```