Skip to content

Commit

Permalink
remove unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
n01e0 committed Dec 29, 2023
1 parent abc9fe7 commit 43a37c5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ppb"
version = "0.2.2"
version = "0.2.3"
edition = "2021"
authors = ["n01e0 <[email protected]>"]
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ impl Config {
pub fn new(args: &Args) -> Result<Self> {
match args.config {
Some(ref config_file) => {
let config_file = std::fs::read_to_string(config_file).unwrap();
let config_file: ConfigFile = serde_yaml::from_str(&config_file).unwrap();
let config_file = std::fs::read_to_string(config_file)?;
let config_file: ConfigFile = serde_yaml::from_str(&config_file)?;
Ok(Config {
organization: config_file
.organization
Expand Down

0 comments on commit 43a37c5

Please sign in to comment.