Skip to content

Commit

Permalink
rollback confy update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjani committed Dec 31, 2023
1 parent 5cda3a8 commit e0c7626
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 29 deletions.
58 changes: 32 additions & 26 deletions 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
Expand Up @@ -27,7 +27,7 @@ clap_complete = "4.4.5"
sled = "0.34.7"

# Configuration management
confy = "0.5.1"
confy = "0.4.0"
directories-next = "1.0.1"

# Error handling
Expand Down
4 changes: 2 additions & 2 deletions src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ file_extension = '{}'
}
}
None => {
Ok(confy::load(NAME, None).suggestion(Apologize::ConfigError {
Ok(confy::load(NAME).suggestion(Apologize::ConfigError {
message: "Couldn't load from the default config location, maybe you don't have access? \
Try running `gooseberry config default config_file.toml`, modify the generated file, \
then `export GOOSEBERRY_CONFIG=<full/path/to/config_file.toml>`".into()
Expand Down Expand Up @@ -930,7 +930,7 @@ file_extension = '{}'
message: "The current config_file location does not seem to have write access. \
Use `export GOOSEBERRY_CONFIG=<full/path/to/config_file.toml>` to set a new location".into()
})?,
None => confy::store(NAME, None, (*self).clone()).suggestion(Apologize::ConfigError {
None => confy::store(NAME, (*self).clone()).suggestion(Apologize::ConfigError {
message: "The current config_file location does not seem to have write access. \
Use `export GOOSEBERRY_CONFIG=<full/path/to/config_file.toml>` to set a new location".into()
})?,
Expand Down

0 comments on commit e0c7626

Please sign in to comment.