diff options
| author | Fuwn <[email protected]> | 2022-01-03 12:45:40 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-01-03 12:45:40 -0800 |
| commit | 3d5686677a21660c8fd7c982f925fd5a53d8eaae (patch) | |
| tree | cb9d2931950278b04e647748b2b632c3d146b733 /crates/windows-kernel-build/src/lib.rs | |
| parent | feat(driver): commit primer (diff) | |
| download | driver-3d5686677a21660c8fd7c982f925fd5a53d8eaae.tar.xz driver-3d5686677a21660c8fd7c982f925fd5a53d8eaae.zip | |
fix(windows-kernal-build): fix unnecessary lazy evaluation
Diffstat (limited to 'crates/windows-kernel-build/src/lib.rs')
| -rw-r--r-- | crates/windows-kernel-build/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/windows-kernel-build/src/lib.rs b/crates/windows-kernel-build/src/lib.rs index d312b82..f2f4680 100644 --- a/crates/windows-kernel-build/src/lib.rs +++ b/crates/windows-kernel-build/src/lib.rs @@ -51,7 +51,8 @@ pub fn get_km_dir(dir_type: DirectoryType) -> Result<PathBuf, Error> { .unwrap_or(false) }) .max() - .ok_or_else(|| Error::DirectoryNotFound)?; + // .ok_or_else(|| Error::DirectoryNotFound)?; + .ok_or(Error::DirectoryNotFound)?; // Finally append km to the path to get the path to the kernel mode libraries. Ok(dir.join("km")) |