for old Rust too

This commit is contained in:
Jon Gjengset 2019-03-17 12:43:11 -04:00
parent 1dd4b31fa2
commit 5577fa678e
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());
Some(match status {
Status::Bad | Status::No => {
Err((status, information.map(std::string::ToString::to_string)))
Err((status, information.map(ToString::to_string)))
}
Status::Ok => Ok(()),
status => Err((status, None)),