File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -383,13 +383,13 @@ impl Color for f64 {
383
383
384
384
fn string_types_to_color_wrapper < S : AsRef < str > + std:: fmt:: Display + Sized > ( v : S ) -> ColorWrapper {
385
385
if v. as_ref ( ) . len ( ) < 6 || v. as_ref ( ) . len ( ) > 7 {
386
- panic ! ( format! ( "{} is not a valid hex color!" , v) ) ;
386
+ panic ! ( "{} is not a valid hex color!" , v) ;
387
387
}
388
388
if v. as_ref ( ) . len ( ) == 6 && v. as_ref ( ) . starts_with ( '#' ) {
389
- panic ! ( format! ( "{} is not a valid hex color!" , v) ) ;
389
+ panic ! ( "{} is not a valid hex color!" , v) ;
390
390
}
391
391
if v. as_ref ( ) . len ( ) == 7 && !v. as_ref ( ) . starts_with ( '#' ) {
392
- panic ! ( format! ( "{} is not a valid hex color!" , v) ) ;
392
+ panic ! ( "{} is not a valid hex color!" , v) ;
393
393
}
394
394
let valid_characters = "#ABCDEF0123456789" ;
395
395
let mut s = v. as_ref ( ) . to_uppercase ( ) ;
@@ -398,7 +398,7 @@ fn string_types_to_color_wrapper<S: AsRef<str> + std::fmt::Display + Sized>(v: S
398
398
}
399
399
for c in s. chars ( ) {
400
400
if !valid_characters. contains ( c) {
401
- panic ! ( format! ( "{} is not a valid hex color!" , v) ) ;
401
+ panic ! ( "{} is not a valid hex color!" , v) ;
402
402
}
403
403
}
404
404
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ impl Kaleido {
78
78
pub fn new ( ) -> Kaleido {
79
79
let path = match Kaleido :: binary_path ( ) {
80
80
Ok ( path) => path,
81
- Err ( msg) => panic ! ( msg) ,
81
+ Err ( msg) => panic ! ( "{}" , msg) ,
82
82
} ;
83
83
84
84
Kaleido { cmd_path : path }
You can’t perform that action at this time.
0 commit comments