Use more const functions.

This commit is contained in:
Stephen Chung
2021-11-27 14:24:06 +08:00
parent 280b5b405e
commit abe6b4a29b
7 changed files with 19 additions and 14 deletions

View File

@@ -121,7 +121,7 @@ impl FileModuleResolver {
base_path: None,
extension: extension.into(),
cache_enabled: true,
cache: Default::default(),
cache: BTreeMap::new().into(),
}
}
@@ -150,7 +150,7 @@ impl FileModuleResolver {
base_path: Some(path.into()),
extension: extension.into(),
cache_enabled: true,
cache: Default::default(),
cache: BTreeMap::new().into(),
}
}