From b7927aa33e87ef4552ebce1632bb0b521d585327 Mon Sep 17 00:00:00 2001 From: Johannes Schilling Date: Thu, 30 Aug 2018 21:27:52 +0200 Subject: [PATCH] client: remove outdated comment from fn login --- src/client.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/client.rs b/src/client.rs index f9b023e..71c9836 100644 --- a/src/client.rs +++ b/src/client.rs @@ -431,12 +431,6 @@ impl Client { username: &str, password: &str ) -> ::std::result::Result, (Error, Client)> { - // note that we need the explicit match blocks here for two reasons: - // 1. we need to convert the validate_str error type to our tuple of - // (Error, Client) - // 2. we can't use `.map_err(|e| (e, self))` because that would capture self into the - // closure. this way borowck sees that self is only bound in the error case where we - // return anyways. let u = ok_or_unauth_client_err!(validate_str(username), self); let p = ok_or_unauth_client_err!(validate_str(password), self); ok_or_unauth_client_err!(self.run_command_and_check_ok(&format!("LOGIN {} {}", u, p)), self);