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

Run through rustfmt, update to Rust 2018, rework to use Arc instead of lifetimes. #30

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jeamland
Copy link

Yes, this is probably too many changes in one PR but if you're interested I'm willing to do the work in splitting them out.

323bce9 just runs all the code through rustfmt.
dd035dc removes a couple of mut declarations the linter was complaining about.
b4cee90 updates everything to Rust 2018.
fc27e0c is the big one: it removes the explicit lifetime declarations and uses Rc instead to maintain pointers without needing consumers of the library to explicitly declare lifetimes too.

All tests still pass.

src/context.rs Outdated Show resolved Hide resolved
src/context.rs Show resolved Hide resolved
src/device.rs Outdated Show resolved Hide resolved
src/device_handle.rs Outdated Show resolved Hide resolved
@jeamland jeamland changed the title Run through rustfmt, update to Rust 2018, rework to use Rc instead of lifetimes. Run through rustfmt, update to Rust 2018, rework to use Arc instead of lifetimes. Apr 2, 2019
@decentninja
Copy link

I had some issues with the current API, but using this branch fixed it and seem to work fine.

@BroderickCarlin
Copy link

What is the current state of this PR?

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.

4 participants