Skip to content

Commit 531984a

Browse files
committed
remove blanked impl for multipart
1 parent e92907d commit 531984a

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/rust/model_gen.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -342,20 +342,7 @@ pub fn multipart_field_module() -> Result<Module> {
342342
+ line("fn to_multipart_field(&self) -> String;")
343343
+ line("fn mime_type(&self) -> &'static str;"),
344344
)
345-
+ line(unit() + "}")
346-
+ NewLine
347-
+ line(unit() + "impl<T: std::fmt::Display> MultipartField for T {")
348-
+ indented(
349-
unit()
350-
+ line("fn to_multipart_field(&self) -> String {")
351-
+ indented(line("self.to_string()"))
352-
+ line("}")
353-
+ NewLine
354-
+ line(unit() + "fn mime_type(&self) -> &'static str {")
355-
+ indented(line(r#""text/plain; charset=utf-8""#))
356-
+ line(unit() + "}"),
357-
)
358-
+ line("}");
345+
+ line(unit() + "}");
359346

360347
Ok(Module {
361348
def: ModuleDef {

0 commit comments

Comments
 (0)