Add blank lines between functions

This commit is contained in:
cw 2020-09-11 16:35:20 +08:00
parent a1564c5218
commit 822473e8e0

View File

@ -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")?;
}
}