From 17449283628c76c0cbaa8c723750ff80aafdd7da Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 27 Nov 2019 14:42:46 -0500 Subject: pull auth_client out into its own field it doesn't hurt anything even though it's not super necessary for plain logins, and it's more convenient to access without needing to deconstruct the enum value --- teleterm/src/cmd/stream.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'teleterm/src/cmd/stream.rs') diff --git a/teleterm/src/cmd/stream.rs b/teleterm/src/cmd/stream.rs index 92026f1..4c3f229 100644 --- a/teleterm/src/cmd/stream.rs +++ b/teleterm/src/cmd/stream.rs @@ -38,7 +38,6 @@ impl crate::config::Config for Config { crate::protocol::AuthType::RecurseCenter => { let id = crate::oauth::load_client_auth_id(self.client.auth); crate::protocol::Auth::recurse_center( - crate::protocol::AuthClient::Cli, id.as_ref().map(std::string::String::as_str), ) } @@ -144,7 +143,12 @@ impl ) -> Self { let term_type = std::env::var("TERM").unwrap_or_else(|_| "".to_string()); - let client = crate::client::Client::stream(&term_type, connect, auth); + let client = crate::client::Client::stream( + &term_type, + connect, + auth, + crate::protocol::AuthClient::Cli, + ); // TODO: tokio::io::stdin is broken (it's blocking) // see https://github.com/tokio-rs/tokio/issues/589 -- cgit v1.2.3-54-g00ecf