-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(config): Don't double-warn about
$CARGO_HOME/config
The core requirements for this bug are - You have a `$CARGO_HOME/.config` - Your project is inside of `$HOME` We have a check to make sure we don't double-walk `$CARGO/config` but that check is *after* we warn about there being no `.toml` extension. To fix this, we just need to move that check outside of the file lookup. This required changing the `seen` check from checking whether walked the config file to checking if we've walked the config dir. As we only have one file per directory, this should work.
- Loading branch information
Showing
2 changed files
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters