summaryrefslogtreecommitdiffstats
path: root/src/ssh.rs
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-04-03 19:12:14 -0500
committerToby Vincent <tobyv13@gmail.com>2023-04-03 19:12:14 -0500
commitc94960b49f463b3c4a7da9fb1b6b2c122f7dd125 (patch)
tree6be101dd21b61775313e04b6c695629b183f48b4 /src/ssh.rs
parent8a6631053a48a64f0c3b21ec0d92b6b687de9638 (diff)
refactor: clean up logic and impl trait for writing sessions
Diffstat (limited to 'src/ssh.rs')
-rw-r--r--src/ssh.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ssh.rs b/src/ssh.rs
index 3508a36..606509a 100644
--- a/src/ssh.rs
+++ b/src/ssh.rs
@@ -23,7 +23,7 @@ impl KnownHosts {
.flatten()
.take_while(|s| !s.starts_with('#'))
.filter_map(|l| l.split_whitespace().next().map(str::to_owned))
- .map(Session::from)
+ .map(Session::discover)
.collect();
Ok(Self(inner))