Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Use PBAR.warn and a struct for versions #628

Merged
merged 1 commit into from
Apr 15, 2019

Conversation

drager
Copy link
Member

@drager drager commented Apr 14, 2019

As mentioned in #409, some comments mentioned to use ? over calling .unwrap() and to use a struct instead of two Strings. This PR leverages ? and a new struct called WasmPackVersion with a local and latest field. This PR also uses PBAR.warn(warning_msg) instead of println!(warning_msg)
to print the warning message. I also changed which::which("wasm-pack") to env::current_exe().

As mentioned in rustwasm#409, some comments mentioned to use `?`
over calling `.unwrap()` and to use a struct
instead of two Strings. This PR leverages `?` and a new struct called
`WasmPackVersion` with a `local` and `latest` field. This PR also
uses `PBAR.warn(warning_msg)` instead of `println!(warning_msg)`
to print the warning message.
@ashleygwilliams ashleygwilliams merged commit fc87511 into rustwasm:master Apr 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants