clippy: fix warning from #444
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user