We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac71c8f commit 3c44777Copy full SHA for 3c44777
1 file changed
src/config.rs
@@ -117,7 +117,11 @@ impl RusticConfig {
117
merge_logs: &mut Vec<(Level, String)>,
118
level_missing: Level,
119
) -> Result<(), FrameworkError> {
120
- let profile_filename = profile.to_string() + ".toml";
+ let profile_filename = if profile.ends_with(".toml") {
121
+ profile.to_string()
122
+ } else {
123
+ profile.to_string() + ".toml"
124
+ };
125
let paths = get_config_paths(&profile_filename);
126
127
if let Some(path) = paths.iter().find(|path| path.exists()) {
0 commit comments