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

Improve ergonomics of methods that must return a struct with a lifetime parameter #2

Open
Cldfire opened this issue May 18, 2017 · 1 comment

Comments

@Cldfire
Copy link
Owner

Cldfire commented May 18, 2017

https://github.com/Cldfire/nvml-wrapper/blob/master/src/device.rs#L2945
https://github.com/Cldfire/nvml-wrapper/blob/master/src/device.rs#L3237

This may or may not be possible to do after rust-lang-deprecated/error-chain#48 is resolved.

@Cldfire Cldfire changed the title Improve ergonomics of functions that must return a struct with a lifetime parameter Improve ergonomics of methods that must return a struct with a lifetime parameter May 18, 2017
@Cldfire
Copy link
Owner Author

Cldfire commented Dec 6, 2020

The links above are outdated, but the method in question here is Device.remove. error-chain is no longer used in nvml-wrapper, so this is now fixable.

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

No branches or pull requests

1 participant