Skip to content

Commit

Permalink
Merge pull request #341 from Enselic/fix-all-non_fmt_panic-compilatio…
Browse files Browse the repository at this point in the history
…n-warnings

Fix all non_fmt_panic compilation warnings
  • Loading branch information
trishume committed Jul 5, 2021
2 parents 6bcec62 + b436fb9 commit d868092
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/syncat.rs
Expand Up @@ -39,7 +39,7 @@ fn main() {

let matches = match opts.parse(&args[1..]) {
Ok(m) => { m }
Err(f) => { panic!(f.to_string()) }
Err(f) => { panic!("{}", f.to_string()) }
};

let no_newlines = matches.opt_present("no-newlines");
Expand Down
2 changes: 1 addition & 1 deletion examples/syntest.rs
Expand Up @@ -274,7 +274,7 @@ fn main() {

let matches = match opts.parse(&args[1..]) {
Ok(m) => { m }
Err(f) => { panic!(f.to_string()) }
Err(f) => { panic!("{}", f.to_string()) }
};

let tests_path = if matches.free.len() < 1 {
Expand Down

0 comments on commit d868092

Please sign in to comment.