diff --git a/crates/libs/core/src/error.rs b/crates/libs/core/src/error.rs index b851a21311..995c93e0df 100644 --- a/crates/libs/core/src/error.rs +++ b/crates/libs/core/src/error.rs @@ -23,6 +23,7 @@ impl Error { } } + /// Creates a new `Error` from the Win32 error code returned by `GetLastError()`. pub fn from_win32() -> Self { unsafe { Self { code: HRESULT::from_win32(crate::imp::GetLastError()), info: None } } }