Skip to content

Commit

Permalink
Merge pull request #61 from cakebaker/remove_needless_return
Browse files Browse the repository at this point in the history
Remove needless return
  • Loading branch information
sylvestre authored Oct 19, 2023
2 parents 9c2285f + 4dca343 commit 8b4c3d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ fn os_version_info() -> Result<WinOsVersionInfo, WinOSError> {
// as a last resort, try to get the relevant info by loading the version info from a system file
// Note: this file version may be just the current "base" version and not the actual most up-to-date version info
// * eg: kernel32.dll (or ntdll.dll) version => "10.0.19041.2130" _vs_ `cmd /c ver` => "10.0.19044.2364"
return version_info_from_file("" /* use default file */);
version_info_from_file("" /* use default file */)
// .or. `return version_info_from_file::<_, &str>(None /* use default file */);`
}
}
Expand Down

0 comments on commit 8b4c3d3

Please sign in to comment.