mirror of
https://github.com/zhom/banderole.git
synced 2026-08-09 19:26:01 +02:00
chore: linting
This commit is contained in:
+4
-5
@@ -76,11 +76,10 @@ pub async fn bundle_project(
|
||||
ProgressStyle::with_template("{prefix:.bold.dim} {spinner:.green} {wide_msg}")
|
||||
.unwrap()
|
||||
.tick_chars("/|\\- ");
|
||||
let bar_style = ProgressStyle::with_template(
|
||||
"{prefix:.bold.dim} {msg}[ {wide_bar} ] {pos}/{len}",
|
||||
)
|
||||
.unwrap()
|
||||
.progress_chars("#>-");
|
||||
let bar_style =
|
||||
ProgressStyle::with_template("{prefix:.bold.dim} {msg}[ {wide_bar} ] {pos}/{len}")
|
||||
.unwrap()
|
||||
.progress_chars("#>-");
|
||||
|
||||
let emoji_prepare = Emoji("🔧", "");
|
||||
let emoji_bundle = Emoji("📦", "");
|
||||
|
||||
+3
-5
@@ -135,11 +135,9 @@ fn build_executable_with_progress(
|
||||
if let Some(pb) = progress {
|
||||
if known_total > 0 {
|
||||
pb.set_style(
|
||||
ProgressStyle::with_template(
|
||||
"[ {wide_bar} ] {pos}/{len}",
|
||||
)
|
||||
.unwrap()
|
||||
.progress_chars("#>-"),
|
||||
ProgressStyle::with_template("[ {wide_bar} ] {pos}/{len}")
|
||||
.unwrap()
|
||||
.progress_chars("#>-"),
|
||||
);
|
||||
pb.set_length(known_total);
|
||||
pb.set_position(0);
|
||||
|
||||
@@ -205,11 +205,9 @@ impl NodeDownloader {
|
||||
// Extract the archive with determinate progress
|
||||
if let Some(pb) = progress {
|
||||
pb.set_style(
|
||||
ProgressStyle::with_template(
|
||||
"[ {wide_bar} ] {pos}/{len}",
|
||||
)
|
||||
.unwrap()
|
||||
.progress_chars("#>-"),
|
||||
ProgressStyle::with_template("[ {wide_bar} ] {pos}/{len}")
|
||||
.unwrap()
|
||||
.progress_chars("#>-"),
|
||||
);
|
||||
pb.set_length(0);
|
||||
pb.set_position(0);
|
||||
|
||||
Reference in New Issue
Block a user