style(multibinary): mark the Clippy lint against manually implementing Default for Command as allowed

This commit is contained in:
J / Jacob Babich
2024-10-16 02:16:22 -04:00
parent 3169ab4cda
commit f392562f81

View File

@@ -50,6 +50,7 @@ cfg_if!(
// with the GUI (made with eframe) // with the GUI (made with eframe)
// being considered more appealing (made the default) // being considered more appealing (made the default)
if #[cfg(feature = "gui-eframe")] { if #[cfg(feature = "gui-eframe")] {
#[allow(clippy::derivable_impls)]
impl Default for Command { impl Default for Command {
fn default() -> Self { fn default() -> Self {
Command::GuiEframe Command::GuiEframe
@@ -58,6 +59,7 @@ cfg_if!(
} }
// than the TUI (made with Ratatui) // than the TUI (made with Ratatui)
else if #[cfg(feature = "tui-ratatui")] { else if #[cfg(feature = "tui-ratatui")] {
#[allow(clippy::derivable_impls)]
impl Default for Command { impl Default for Command {
fn default() -> Self { fn default() -> Self {
Command::TuiRatatui Command::TuiRatatui