Skip to content

Commit

Permalink
refactor: 🔨 Make the Drivers structure return the right type for the …
Browse files Browse the repository at this point in the history
…run function
  • Loading branch information
AntwortEinesLebens committed Jan 17, 2025
1 parent 0f615a1 commit b4576d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/traces/drivers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -23,7 +23,7 @@ pub enum Command {
}

impl Runnable for Drivers {
fn run(&self) -> Result<(), Box<dyn Error>> {
fn run(&self) -> ExitCode {
match &self.command {
Command::Byovd(byovd) => byovd as &dyn Runnable,
}
Expand Down

0 comments on commit b4576d1

Please sign in to comment.