Fix coding style issue

This commit is contained in:
2022-03-30 08:42:18 +02:00
parent b4e8113706
commit 6d8b8979ca
2 changed files with 23 additions and 13 deletions

@ -30,6 +30,10 @@ impl<E> EntityManager<E> where E: rocket::serde::Serialize + rocket::serde::Dese
self.list.len()
}
pub fn is_empty(&self) -> bool {
self.len() == 0
}
/// Save the list
fn save(&self) -> Res {
Ok(std::fs::write(&self.file_path, serde_json::to_string(&self.list)?)?)