From 3d5686677a21660c8fd7c982f925fd5a53d8eaae Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 3 Jan 2022 12:45:40 -0800 Subject: fix(windows-kernal-build): fix unnecessary lazy evaluation --- crates/windows-kernel-build/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { .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")) -- cgit v1.2.3