From b4576d12af989e367f6126d258e16e2c57878225 Mon Sep 17 00:00:00 2001 From: AntwortEinesLebens Date: Fri, 17 Jan 2025 16:21:53 +0100 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=94=A8=20Make=20the=20Drivers?= =?UTF-8?q?=20structure=20return=20the=20right=20type=20for=20the=20run=20?= =?UTF-8?q?function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/traces/drivers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/traces/drivers.rs b/src/commands/traces/drivers.rs index b0b3582..77da41f 100644 --- a/src/commands/traces/drivers.rs +++ b/src/commands/traces/drivers.rs @@ -5,7 +5,7 @@ use crate::commands::{traces::drivers::byovd::Byovd, Runnable}; use clap::{Args, Subcommand}; use serde::Deserialize; -use std::error::Error; +use std::{error::Error, process::ExitCode}; pub mod byovd; @@ -23,7 +23,7 @@ pub enum Command { } impl Runnable for Drivers { - fn run(&self) -> Result<(), Box> { + fn run(&self) -> ExitCode { match &self.command { Command::Byovd(byovd) => byovd as &dyn Runnable, }