You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation should warn that this is probably not what you want, code() being the thing that actually gets the HRESULT, while extract_code returns the same type but masked out.
Unfortunately the generated docs for HResult don't show the methods from the generic ErrorAndSource, there is a link in the summary but it's easy to overlook. I wonder if there is a way to get those included... (looks like this is rust-lang/rust#32077)
Maybe it shouldn't return HRESULT at all, but instead the underlying i32 (same with extract_facility).
The text was updated successfully, but these errors were encountered:
The documentation should warn that this is probably not what you want,
code()
being the thing that actually gets theHRESULT
, whileextract_code
returns the same type but masked out.Unfortunately the generated docs for
HResult
don't show the methods from the genericErrorAndSource
, there is a link in the summary but it's easy to overlook. I wonder if there is a way to get those included... (looks like this is rust-lang/rust#32077)Maybe it shouldn't return
HRESULT
at all, but instead the underlyingi32
(same withextract_facility
).The text was updated successfully, but these errors were encountered: