refactor: remove useless CommandError to_string

This commit is contained in:
Benjamin Chastanier
2022-03-11 16:40:18 +01:00
parent d5793b82f2
commit 4f20263b0e

View File

@@ -32,19 +32,6 @@ pub enum CommandError {
Killed(String),
}
impl CommandError {
pub fn to_string(&self) -> String {
match self {
ExecutionError(err) => format!("Execution error: {}", err.to_string()),
ExitStatusError(exit_status) => {
format!("Execution error: exit status {}", exit_status.to_string())
}
TimeoutError(msg) => format!("Execution error: timeout, {}", msg.to_string()),
Killed(msg) => format!("Execution error: killed, {}", msg.to_string()),
}
}
}
pub struct QoveryCommand {
command: Command,
}