Skip to content

Commit

Permalink
Merge branch 'main' into renovate/bb8-0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm authored Mar 31, 2024
2 parents 4a163bd + 1878cf4 commit 329546b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ anyhow = "1.0.79"
async-bb8-diesel = { git = "https://github.com/oxidecomputer/async-bb8-diesel" }
async-trait = "0.1.77"
base64 = "0.21.7"
bb8 = "0.8.3"
chrono = "0.4.31"
chrono = "0.4.37"

Check failure on line 24 in Cargo.toml

View workflow job for this annotation

GitHub Actions / build

duplicate key `chrono` in table `workspace.dependencies`

Check failure on line 24 in Cargo.toml

View workflow job for this annotation

GitHub Actions / build

duplicate key `chrono` in table `workspace.dependencies`

Check failure on line 24 in Cargo.toml

View workflow job for this annotation

GitHub Actions / test

duplicate key `chrono` in table `workspace.dependencies`

Check failure on line 24 in Cargo.toml

View workflow job for this annotation

GitHub Actions / test

duplicate key `chrono` in table `workspace.dependencies`
clap = { version = "4.4.16", features = ["derive", "string", "env"] }
config = { version = "0.13.4", features = ["toml"] }
cookie = { version = "0.18.0" }
Expand Down
14 changes: 11 additions & 3 deletions rfd-cli/src/printer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ pub trait CliOutput {
fn output_search_results(&self, value: types::SearchResults) {}
fn output_error<T>(&self, value: &progenitor_client::Error<T>)
where
T: schemars::JsonSchema + serde::Serialize + std::fmt::Debug,
{
}
T: schemars::JsonSchema + serde::Serialize + std::fmt::Debug;
}

impl CliOutput for Printer {
Expand Down Expand Up @@ -167,4 +165,14 @@ impl CliOutput for Printer {
Self::Tab(printer) => printer.output_search_results(value),
}
}

fn output_error<T>(&self, value: &progenitor_client::Error<T>)
where
T: schemars::JsonSchema + serde::Serialize + std::fmt::Debug,
{
match self {
Self::Json(printer) => printer.output_error(value),
Self::Tab(printer) => printer.output_error(value),
}
}
}

0 comments on commit 329546b

Please sign in to comment.