clippy: fix warning from #444

This commit is contained in:
Paolo Barbolini
2020-08-02 21:48:26 +02:00
parent 72015da467
commit 8fa66c1e0f

View File

@@ -209,7 +209,7 @@ fn make_boundary() -> String {
} }
impl MultiPartKind { impl MultiPartKind {
fn to_mime<S: AsRef<str>>(self, boundary: Option<S>) -> Mime { fn to_mime<S: AsRef<str>>(&self, boundary: Option<S>) -> Mime {
let boundary = boundary let boundary = boundary
.map(|s| s.as_ref().into()) .map(|s| s.as_ref().into())
.unwrap_or_else(make_boundary); .unwrap_or_else(make_boundary);