Skip to content

Commit

Permalink
prefer to use yaml extension
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-jq-b committed Aug 21, 2023
1 parent 165367c commit 5250d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/g3-daemon/src/opts/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static CONFIG_DIR_PATH: OnceLock<PathBuf> = OnceLock::new();
static CONFIG_FILE_EXTENSION: OnceLock<OsString> = OnceLock::new();

fn guess_config_file(dir: &Path, program_name: &'static str) -> anyhow::Result<PathBuf> {
const GUESS_EXT: &[&str] = &["yml", "yaml", "conf"];
const GUESS_EXT: &[&str] = &["yaml", "yml", "conf"];

let rdir = dir
.read_dir()
Expand Down

0 comments on commit 5250d35

Please sign in to comment.