Skip to content

Commit c60d5ba

Browse files
authored
Merge pull request #3 from golemcloud/fix_compilation
fix compilation
2 parents eee6399 + d6462d9 commit c60d5ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rust/client_gen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ fn make_part(param: &Param) -> RustResult {
617617
if param.tpe == DataType::Binary {
618618
Ok(indent() + r#".part(""# + &param.original_name + r#"", "# + part_type + "::stream(" + &param.name + r#").mime_str("application/octet-stream")?)"#)
619619
} else if param.tpe == DataType::String {
620-
Ok(indent() + r#".part(""# + &param.original_name + r#"", "# + part_type + "::text(" + &param.name + r#".into()).mime_str("text/plain; charset=utf-8")?)"#)
620+
Ok(indent() + r#".part(""# + &param.original_name + r#"", "# + part_type + "::text(" + &param.name + r#".to_string()).mime_str("text/plain; charset=utf-8")?)"#)
621621
} else if let DataType::Model(_) = param.tpe {
622622
Ok(indent() + r#".part(""# + &param.original_name + r#"", "# + part_type + "::text(serde_json::to_string(" + &param.name + r#")?).mime_str("application/json")?)"#)
623623
} else {

0 commit comments

Comments
 (0)