houskeeping: linter run
This commit is contained in:
@@ -127,8 +127,7 @@ impl Controller {
|
||||
let project = Project::new(config)?;
|
||||
|
||||
println!(
|
||||
"\n{} {}\n",
|
||||
"Created pgd.toml in",
|
||||
"\nCreated pgd.toml in {}\n",
|
||||
project.path.display().to_string().bright_white().bold()
|
||||
);
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use miette::{Diagnostic, miette};
|
||||
use std::{io::Write, str::FromStr};
|
||||
use std::str::FromStr;
|
||||
use thiserror::Error;
|
||||
|
||||
use bollard::{
|
||||
@@ -283,11 +283,11 @@ impl DockerController {
|
||||
..Default::default()
|
||||
});
|
||||
|
||||
let logs = self
|
||||
|
||||
|
||||
self
|
||||
.daemon
|
||||
.logs(container_id, options)
|
||||
.map(|k| k.into_diagnostic().wrap_err("Failed streaming logs"));
|
||||
|
||||
logs
|
||||
.map(|k| k.into_diagnostic().wrap_err("Failed streaming logs"))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ use indicatif::{MultiProgress, ProgressBar, ProgressState, ProgressStyle};
|
||||
fn new_download_pb(multi: &MultiProgress, layer_id: &str) -> ProgressBar {
|
||||
let pb = multi.add(ProgressBar::new(0));
|
||||
pb.set_style(
|
||||
ProgressStyle::with_template(&"{spinner:.green} [{elapsed_precise}] {msg} [{wide_bar:.cyan/blue}] {bytes}/{total_bytes} ({eta})".to_string())
|
||||
ProgressStyle::with_template("{spinner:.green} [{elapsed_precise}] {msg} [{wide_bar:.cyan/blue}] {bytes}/{total_bytes} ({eta})")
|
||||
.unwrap()
|
||||
.with_key("eta", |state: &ProgressState, w: &mut dyn Write| {
|
||||
write!(w, "{:.1}s", state.eta().as_secs_f64()).unwrap()
|
||||
|
||||
@@ -146,7 +146,7 @@ impl<'a> Reconciler<'a> {
|
||||
.is_container_running_by_id(container_id)
|
||||
.await?
|
||||
{
|
||||
return Ok(());
|
||||
Ok(())
|
||||
} else {
|
||||
miette::bail!("Container stopped unexpectedly after start");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user