Fix typo in sync.

This commit is contained in:
Stephen Chung 2021-01-03 13:46:08 +08:00
parent 33f7c8557c
commit 103af43f68

View File

@ -223,7 +223,7 @@ impl ModuleResolver for FileModuleResolver {
#[cfg(not(feature = "sync"))]
self.cache.borrow_mut().insert(file_path, m.clone());
#[cfg(feature = "sync")]
self.cache.write().unwrap().insert(file_path, module);
self.cache.write().unwrap().insert(file_path, m.clone());
Ok(m)
}