Fix warnings about deprecated Error::description

This commit is contained in:
Sean McArthur
2020-01-29 15:15:58 -08:00
parent 5020ff0933
commit 74d02933a5
3 changed files with 24 additions and 50 deletions

View File

@@ -1,6 +1,5 @@
use futures::future::join;
use h2_support::prelude::*;
use std::error::Error;
#[tokio::test]
async fn read_none() {
@@ -209,7 +208,7 @@ async fn update_max_frame_len_at_rest() {
assert_eq!(codec.max_recv_frame_size(), 16_384);
assert_eq!(
codec.next().await.unwrap().unwrap_err().description(),
codec.next().await.unwrap().unwrap_err().to_string(),
"frame with invalid size"
);
}