Skip to content

Commit 7c77c97

Browse files
Improvements
1 parent ec04be3 commit 7c77c97

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ Then you can install `golem-scalajs-wit-bindgen` with the following command:
2121
cargo install golem-scalajs-wit-bindgen
2222
```
2323

24+
Or, you can clone this repository and install with the following command:
25+
26+
```shell
27+
cargo install --path .
28+
```
29+
2430
## Running
2531

2632
To run `golem-scalajs-wit-bindgen` and get more help, you can execute the following command:

src/types/type_name.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ impl Constructor {
7171
.map(|param| {
7272
param
7373
.as_ref()
74-
.map(|ty| ty.to_string())
75-
.unwrap_or_else(|| "Unit".to_owned())
74+
.map_or_else(|| "Unit".to_owned(), Type::to_string)
7675
})
7776
.collect(),
7877
})

0 commit comments

Comments
 (0)