fix tests for Part::mime()

This commit is contained in:
Sean McArthur
2018-09-11 14:12:16 -07:00
parent 6dfb7a5a0e
commit 64569542d4

View File

@@ -197,13 +197,12 @@ impl Part {
Ok(self) Ok(self)
} }
/* Re-enable when mime 0.4 is available, with split MediaType/MediaRange. // Re-enable when mime 0.4 is available, with split MediaType/MediaRange.
/// Sets the mime, builder style. #[cfg(test)]
pub fn mime(mut self, mime: Mime) -> Part { fn mime(mut self, mime: Mime) -> Part {
self.mime = Some(mime); self.mime = Some(mime);
self self
} }
*/
/// Sets the filename, builder style. /// Sets the filename, builder style.
pub fn file_name<T: Into<Cow<'static, str>>>(mut self, filename: T) -> Part { pub fn file_name<T: Into<Cow<'static, str>>>(mut self, filename: T) -> Part {