From d11cfade8a77746884e661d801ced103bcd333b9 Mon Sep 17 00:00:00 2001 From: Enrico Rubboli Date: Wed, 11 Sep 2024 18:33:43 +0200 Subject: [PATCH] use is_err() --- node-gui/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-gui/build.rs b/node-gui/build.rs index e166253f0..a6cf894fd 100644 --- a/node-gui/build.rs +++ b/node-gui/build.rs @@ -20,7 +20,7 @@ fn main() -> Result<(), Box> { use std::fs; use winres::WindowsResource; - if !fs::metadata("app.manifest").is_ok() { + if fs::metadata("app.manifest").is_err() { return Err(format!("app.manifest not found in: {:?}", env::current_dir()?).into()); }