diff --git a/src/lib.rs b/src/lib.rs index cea8e9a..45c4c4f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -708,7 +708,7 @@ impl Download { pb.set_style( ProgressStyle::default_bar() .template(&self.progress_template) - .unwrap() + .expect("set ProgressStyle template failed") .progress_chars(&self.progress_chars), );