-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get rid of the dirs dependency. #1577 #1584
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1584 +/- ##
==========================================
- Coverage 34.22% 29.48% -4.74%
==========================================
Files 209 193 -16
Lines 24034 21195 -2839
==========================================
- Hits 8225 6250 -1975
+ Misses 15809 14945 -864
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change data_dir
to be a PathBuf
and then it's all set.
@@ -34,9 +35,10 @@ pub struct Config { | |||
|
|||
impl Default for Config { | |||
fn default() -> Self { | |||
let dir = ProjectDirs::from("com", "ChainSafe", "Forest").expect("failed to find project directories, please set FOREST_CONFIG_PATH environment variable manually."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally we would factor this out so we only have a single source of truth for the ProjectDirs. But that can wait until another PR.
Summary of changes
Changes introduced in this pull request:
Reference issue to close (if applicable)
Closes #1577
Other information and links