Skip to content

rust: add support for creating a Buffer from a raw pointer. #581

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

Merged
merged 1 commit into from
Dec 2, 2021

Conversation

wedsonaf
Copy link

@wedsonaf wedsonaf commented Dec 1, 2021

This is going to be used in the show method of sysfs files.

Also add a generic conversion from format errors to kernel result errors
so that we can use the ?-operator in functions that return Result.

Signed-off-by: Wedson Almeida Filho [email protected]

This is going to be used in the `show` method of sysfs files.

Also add a generic conversion from format errors to kernel result errors
so that we can use the `?`-operator in functions that return `Result`.

Signed-off-by: Wedson Almeida Filho <[email protected]>
@wedsonaf wedsonaf merged commit 4349c44 into Rust-for-Linux:rust Dec 2, 2021
@wedsonaf wedsonaf deleted the raw-buffer branch December 2, 2021 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants