minor clean up

This commit is contained in:
scbj
2025-02-03 09:57:09 +01:00
parent 1c30fd87a5
commit c846a16c8f
2 changed files with 1 additions and 3 deletions
@@ -144,7 +144,6 @@ pub fn gen_to_string(fields: &Punctuated<Field, Comma>) -> 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
+1 -2
View File
@@ -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 {