From fed2d28aa8bffd12f4b8025fe85c12b2873ae199 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Fri, 29 Mar 2019 11:44:26 -0600 Subject: [PATCH] platform: fix regression... ... that prevents the build on Windows --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3d80874..f6f6237 100644 --- a/src/main.rs +++ b/src/main.rs @@ -301,8 +301,8 @@ fn main() { let result = match nfd::open_pick_folder(None) .log_expect("Unable to open folder dialog") { - Response::Okay(v) => v, - _ => return, + Response::Okay(v) => Ok(v), + _ => Err(()), }; #[cfg(not(windows))]