Add blank lines between functions
This commit is contained in:
parent
a1564c5218
commit
822473e8e0
|
@ -66,6 +66,7 @@ fn parse_config<'a>(
|
|||
}
|
||||
Err(Error::KeyNotFoundError(key))
|
||||
}
|
||||
|
||||
fn delete_old_entry<'a>(
|
||||
key: &str,
|
||||
file: fatfs::File<sd_reader::SdReader>,
|
||||
|
@ -82,6 +83,7 @@ fn delete_old_entry<'a>(
|
|||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn rename_file<'a>(dir: &fatfs::Dir<sd_reader::SdReader>, old_file_name: &str, new_file_name: &str) -> Result<'a, ()>{
|
||||
{
|
||||
let old_file = dir.open_file(old_file_name)?;
|
||||
|
@ -206,7 +208,7 @@ impl Config {
|
|||
}
|
||||
}
|
||||
};
|
||||
if need_to_rename { // docs: ensure no ref to files
|
||||
if need_to_rename {
|
||||
rename_file(&root_dir, config_txt_tmp, "/CONFIG.TXT")?;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue