Skip to content

Commit

Permalink
remove unneeded into()
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlie Davis committed Jun 9, 2024
1 parent fc288de commit 299e667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/libs/result/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ impl From<std::io::Error> for Error {

use std::io::ErrorKind;

fn w32(code: u32) -> HRESULT {
HRESULT::from_win32(code).into()
const fn w32(code: u32) -> HRESULT {
HRESULT::from_win32(code)
}

// Many ErrorKind variants are not yet stabilized. Some of them have
Expand Down

0 comments on commit 299e667

Please sign in to comment.