diff --git a/config-parser/config-parser-macro/src/generator_functions.rs b/config-parser/config-parser-macro/src/generator_functions.rs index d843464..52a3dd0 100644 --- a/config-parser/config-parser-macro/src/generator_functions.rs +++ b/config-parser/config-parser-macro/src/generator_functions.rs @@ -144,7 +144,6 @@ pub fn gen_to_string(fields: &Punctuated) -> TokenStream { None => continue 'fields, }; let name_string = name.to_string(); - // TODO: continue here for attribute in attr { if let Attribute{ meta: Meta::Path( Path{segments, ..} ), .. } = attribute { // parse nested configs or skip nonconfig elements diff --git a/src/config.rs b/src/config.rs index 40b15b1..ec81fd7 100644 --- a/src/config.rs +++ b/src/config.rs @@ -143,14 +143,13 @@ impl Config { } // parse configuration file and populate config struct + // if the file is not found, navigate uses the defaults if config_file.is_file() { let config_str = match fs::read_to_string(&config_file) { Ok(value) => value, Err(error) => return Err(error), }; _ = config.parse_from_string(&config_str); - } else { - // TODO: write default configuration } if styles_as_ansi_sequences {