This commit is contained in:
@@ -20,7 +20,10 @@ where
|
||||
/// Open entity
|
||||
pub fn open_or_create<A: AsRef<Path>>(path: A) -> Res<Self> {
|
||||
if !path.as_ref().is_file() {
|
||||
log::warn!("Entities at {:?} does not point to a file, creating a new empty entity container...", path.as_ref());
|
||||
log::warn!(
|
||||
"Entities at {:?} does not point to a file, creating a new empty entity container...",
|
||||
path.as_ref()
|
||||
);
|
||||
return Ok(Self {
|
||||
file_path: path.as_ref().to_path_buf(),
|
||||
list: vec![],
|
||||
|
||||
Reference in New Issue
Block a user