diff --git a/crates/pacdef_core/src/backend/actual/arch.rs b/crates/pacdef_core/src/backend/actual/arch.rs index efc8cae..4c0757a 100644 --- a/crates/pacdef_core/src/backend/actual/arch.rs +++ b/crates/pacdef_core/src/backend/actual/arch.rs @@ -28,7 +28,7 @@ const SUPPORTS_AS_DEPENDENCY: bool = true; impl Backend for Arch { impl_backend_constants!(); - fn get_binary_inner(&self) -> Text { + fn get_binary(&self) -> Text { let r#box = self.binary.clone().into_boxed_str(); Box::leak(r#box) } diff --git a/crates/pacdef_core/src/backend/backend_trait.rs b/crates/pacdef_core/src/backend/backend_trait.rs index 6d8a3d6..1b39157 100644 --- a/crates/pacdef_core/src/backend/backend_trait.rs +++ b/crates/pacdef_core/src/backend/backend_trait.rs @@ -12,10 +12,10 @@ pub(in crate::backend) type Switches = &'static [&'static str]; pub(in crate::backend) type Text = &'static str; pub trait Backend: Debug { - fn get_binary(&self) -> Text; - fn get_binary_inner(&self) -> Text { - self.get_binary() + fn get_binary(&self) -> Text { + self.get_binary_default() } + fn get_binary_default(&self) -> Text; fn get_section(&self) -> Text; fn get_switches_info(&self) -> Switches; diff --git a/crates/pacdef_core/src/backend/macros.rs b/crates/pacdef_core/src/backend/macros.rs index 9c3a00b..f2983eb 100644 --- a/crates/pacdef_core/src/backend/macros.rs +++ b/crates/pacdef_core/src/backend/macros.rs @@ -3,7 +3,7 @@ #[macro_export] macro_rules! impl_backend_constants { () => { - fn get_binary(&self) -> Text { + fn get_binary_default(&self) -> Text { BINARY }