-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
os: Implement newtype for HRESULT with must_use and hexadecimal format (
#29) Unify the use of `com_rs::HResult` into a newtyped `HRESULT` that allows us to place a `#[must_use]` annotation and in turn prevent missing errors from the API, which could lead to worse Undefined Behaviour. In addition we can now use hexadecimal formatting for the `Display` and `Debug` traits making them much easier to read in `unwrap()` and similar scenarios.
- Loading branch information
Showing
3 changed files
with
83 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters