mirror of
https://github.com/erg-lang/erg.git
synced 2025-07-24 05:26:24 +00:00
Update cache.rs
This commit is contained in:
parent
923f8fbbaf
commit
a7cdc7bc7c
1 changed files with 3 additions and 1 deletions
|
@ -218,7 +218,9 @@ impl SharedModuleCache {
|
|||
|
||||
pub fn initialize(&self) {
|
||||
let builtin_path = PathBuf::from("<builtins>");
|
||||
let builtin = self.remove(&builtin_path).unwrap();
|
||||
let Some(builtin) = self.remove(&builtin_path) else {
|
||||
return;
|
||||
};
|
||||
for path in self.keys() {
|
||||
self.remove(&path);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue