-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add helper functions & rename
env
to env_layer
Added functions so people don't have to bypass the `handle_layer` dance alltogether: - set_default - set_envs After writing that I realized that the `env` namespace could cause confusion since there's commonly an `env` variable: ```rust // This is confusing let env = ... env::set_default(... ``` So I changed the module name to `env_layer` so it avoids confusion. There's some redundancy in `env_layer::DefaultEnvLayer` but I thought it would be more confusing making it `env_layer::Default` (collision with `std::default::Default`).
- Loading branch information
Showing
4 changed files
with
92 additions
and
65 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
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