There was an error while loading. Please reload this page.
1 parent ec04be3 commit 7c77c97Copy full SHA for 7c77c97
README.md
@@ -21,6 +21,12 @@ Then you can install `golem-scalajs-wit-bindgen` with the following command:
21
cargo install golem-scalajs-wit-bindgen
22
```
23
24
+Or, you can clone this repository and install with the following command:
25
+
26
+```shell
27
+cargo install --path .
28
+```
29
30
## Running
31
32
To run `golem-scalajs-wit-bindgen` and get more help, you can execute the following command:
src/types/type_name.rs
@@ -71,8 +71,7 @@ impl Constructor {
71
.map(|param| {
72
param
73
.as_ref()
74
- .map(|ty| ty.to_string())
75
- .unwrap_or_else(|| "Unit".to_owned())
+ .map_or_else(|| "Unit".to_owned(), Type::to_string)
76
})
77
.collect(),
78
0 commit comments