Skip to content

Commit

Permalink
updated Part.content_type() to return Mime.as_ref() string (#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
aedmondson committed Jun 5, 2023
1 parent e65937c commit d73dc54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filters/multipart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ impl Part {
/// Get the content-type of this part, if present.
pub fn content_type(&self) -> Option<&str> {
let content_type = self.part.content_type();
content_type.map(|t| t.type_().as_str())
content_type.map(|t| t.as_ref())
}

/// Asynchronously get some of the data for this `Part`.
Expand Down

0 comments on commit d73dc54

Please sign in to comment.