Update trait object syntax to use 'dyn'

This commit is contained in:
Sean McArthur
2019-06-03 13:14:33 -07:00
parent 1d26d7b472
commit 964d87ce57
7 changed files with 10 additions and 10 deletions

View File

@@ -9,7 +9,7 @@
//! ```
//! use reqwest::multipart;
//!
//! # fn run() -> Result<(), Box<::std::error::Error>> {
//! # fn run() -> Result<(), Box<dyn std::error::Error>> {
//! let form = multipart::Form::new()
//! // Adding just a simple text field...
//! .text("username", "seanmonstar")
@@ -282,7 +282,7 @@ impl PartProps for Part {
pub(crate) struct Reader {
form: Form,
active_reader: Option<Box<Read + Send>>,
active_reader: Option<Box<dyn Read + Send>>,
}
impl fmt::Debug for Reader {