We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e92907d commit 531984aCopy full SHA for 531984a
src/rust/model_gen.rs
@@ -342,20 +342,7 @@ pub fn multipart_field_module() -> Result<Module> {
342
+ line("fn to_multipart_field(&self) -> String;")
343
+ line("fn mime_type(&self) -> &'static str;"),
344
)
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
354
- + line(unit() + "fn mime_type(&self) -> &'static str {")
355
- + indented(line(r#""text/plain; charset=utf-8""#))
356
- + line(unit() + "}"),
357
- )
358
- + line("}");
+ + line(unit() + "}");
359
360
Ok(Module {
361
def: ModuleDef {
0 commit comments