Radish alpha
r
rad:zwTxygwuz5LDGBq255RA2CbNGrz8
Radicle CI broker
Radicle
Git
chore: drop unused type and import
Lars Wirzenius committed 8 months ago
commit 4cea4f3657e69c97f21311fd5791a106a9413432
parent 66a374d
2 files changed +0 -31
modified src/bin/cibtool.rs
@@ -17,7 +17,6 @@ use std::{
};

use clap::Parser;
-
use serde::Serialize;

use radicle::{
    git::Oid,
modified src/bin/cibtoolcmd/run.rs
@@ -264,33 +264,3 @@ impl Leaf for ListRuns {
        Ok(())
    }
}
-

-
#[derive(Serialize)]
-
struct RunInfo {
-
    run_id: String,
-
    timestamp: String,
-
    repo_id: String,
-
    repo_alias: String,
-
    whence: Whence,
-
    info_url: Option<String>,
-
    state: RunState,
-
    result: Option<RunResult>,
-
}
-

-
impl From<&Run> for RunInfo {
-
    fn from(run: &Run) -> Self {
-
        RunInfo {
-
            run_id: run
-
                .adapter_run_id()
-
                .map(|id| id.to_string())
-
                .unwrap_or("unknown".into()),
-
            timestamp: run.timestamp().into(),
-
            repo_id: run.repo_id().to_string(),
-
            repo_alias: run.repo_alias().into(),
-
            whence: run.whence().clone(),
-
            info_url: run.adapter_info_url().map(|url| url.into()),
-
            state: run.state(),
-
            result: run.result().cloned(),
-
        }
-
    }
-
}