This commit is contained in:
Jon Gjengset 2019-03-17 12:39:29 -04:00
parent eaa9426578
commit 1dd4b31fa2
No known key found for this signature in database
GPG key ID: F8FBEB3BC15B735B

View file

@ -1175,7 +1175,7 @@ impl<T: Read + Write> Connection<T> {
assert_eq!(tag.as_bytes(), match_tag.as_bytes()); assert_eq!(tag.as_bytes(), match_tag.as_bytes());
Some(match status { Some(match status {
Status::Bad | Status::No => { Status::Bad | Status::No => {
Err((status, information.map(|s| s.to_string()))) Err((status, information.map(std::string::ToString::to_string)))
} }
Status::Ok => Ok(()), Status::Ok => Ok(()),
status => Err((status, None)), status => Err((status, None)),