Fix warnings about deprecated Error::description
This commit is contained in:
@@ -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"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user