Skip to content

Commit

Permalink
Add hyphen required by Cargo in package version (#159)
Browse files Browse the repository at this point in the history
* Add - required by Cargo in package version

* Use string literal with panic! macro

Co-authored-by: Riccardo Tonini <[email protected]>
Co-authored-by: RickyDepop <[email protected]>
  • Loading branch information
3 people authored Apr 1, 2021
1 parent dacf779 commit 590a88b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "whale"
version = "2.0.0b0"
version = "2.0.0-b0"
authors = ["Robert Yi <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion cli/src/skimmer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fn command_is_installed(command: &str) -> bool {

fn read_file_to_string(file_path: &str) -> String {
fs::read_to_string(file_path)
.unwrap_or_else(|_| panic!(format!("failed to read path: {}", file_path)))
.unwrap_or_else(|_| panic!("{}", format!("failed to read path: {}", file_path)))
}

// TODO: I don't like this name - how to clean this up?
Expand Down

0 comments on commit 590a88b

Please sign in to comment.