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

Rewrite to use builder pattern. Fix dispatch unsafety. #36

Merged
merged 7 commits into from
Nov 10, 2018

Conversation

green-s
Copy link
Contributor

@green-s green-s commented Nov 4, 2018

- Fix unsafety (require 'static bound on dispatched closure)
- Switch to builder pattern.
- Run rustfmt
- Fix clippy warnings
- Userdata borrowed from webview instead of being arg of dispatch closure
- Bump minor version
- Update webview
- Add crate-level doc
@green-s green-s force-pushed the rewrite branch 3 times, most recently from 2f0405b to 4b53dc9 Compare November 5, 2018 17:03
@richardhozak
Copy link
Collaborator

Looks nice, but could you implement the errors by hand instead of relying on failure? The error management story in Rust going to probably change in the future (see this), so I think we should not take failure as a dependency (yet).

@green-s
Copy link
Contributor Author

green-s commented Nov 10, 2018

Done, although no backtrace support. Not sure what's going on with that travis failure. Rustup bug or a bad cache I guess?

@richardhozak
Copy link
Collaborator

Yeah not sure about the travis failure, seems to appear only on beta channel. Anyway thank you so much for your contribution it is nice that someone stepped up and implemented these very needed changes. I think the builder pattern will especially be useful and the error propagation is also nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants