From 6d46f0af58cc41e0aa329789561c1c084667a401 Mon Sep 17 00:00:00 2001 From: Jonas da Silva Date: Fri, 18 Oct 2024 14:50:13 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Call=20panic=20function=20instea?= =?UTF-8?q?d=20of=20using=20panic=20field?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/project.rs b/src/project.rs index a59c060..d1b9fb6 100644 --- a/src/project.rs +++ b/src/project.rs @@ -300,7 +300,7 @@ impl Project { Ok(res) => log::info!("[{}] {}", name, String::from_utf8_lossy(res.as_slice())), Err(e) => { log::error!("Failed to run plugin {}: {}", name, e); - if plugin.panic { + if plugin.panic() { return Err(e); } }