From 937efc3782d05f7647d8baf987a74edf72b0506e Mon Sep 17 00:00:00 2001 From: steven-omaha <35634100+steven-omaha@users.noreply.github.com> Date: Wed, 3 Apr 2024 17:42:57 +0200 Subject: [PATCH] refact(rustup): make_dependency panic calling this would be a programming error, therefore a panic is warranted --- crates/pacdef_core/src/backend/actual/rustup.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/pacdef_core/src/backend/actual/rustup.rs b/crates/pacdef_core/src/backend/actual/rustup.rs index a9f6db4..ee08012 100644 --- a/crates/pacdef_core/src/backend/actual/rustup.rs +++ b/crates/pacdef_core/src/backend/actual/rustup.rs @@ -57,7 +57,7 @@ impl Backend for Rustup { } fn make_dependency(&self, _: &[Package]) -> Result { - bail!("Not supported by {}", self.get_binary()) + panic!("Not supported by {}", self.get_binary()) } fn install_packages(&self, packages: &[Package], _: bool) -> Result {