Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #48 from golemcloud/update-client
Browse files Browse the repository at this point in the history
update client
  • Loading branch information
senia-psm authored Jan 22, 2024
2 parents 04793c1 + 05f23ed commit 5ad7965
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ clap = { version = "4.4.12", features = ["derive"] }
clap-verbosity-flag = "2.1.1"
derive_more = "0.99.17"
futures-util = "0.3.30"
golem-client = "0.0.54"
golem-client = "0.0.55"
golem-examples = "0.1.10"
http = "1.0.0"
indoc = "2.0.4"
Expand Down
6 changes: 3 additions & 3 deletions src/clients/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ fn render_type(typ: &Type) -> String {

fn render_result(r: &FunctionResult) -> String {
match &r.name {
None => render_type(&r.tpe),
Some(name) => format!("{name}: {}", render_type(&r.tpe)),
None => render_type(&r.typ),
Some(name) => format!("{name}: {}", render_type(&r.typ)),
}
}

Expand All @@ -166,7 +166,7 @@ fn show_exported_function(
) -> String {
let params = parameters
.iter()
.map(|p| format!("{}: {}", p.name, render_type(&p.tpe)))
.map(|p| format!("{}: {}", p.name, render_type(&p.typ)))
.collect::<Vec<String>>()
.join(", ");
let res_str = results
Expand Down

0 comments on commit 5ad7965

Please sign in to comment.