Use #[inline(always)] only when relatively certain.
This commit is contained in:
@@ -215,7 +215,7 @@ impl FileModuleResolver {
|
||||
return self.cache.write().unwrap().contains_key(&file_path);
|
||||
}
|
||||
/// Empty the internal cache.
|
||||
#[inline(always)]
|
||||
#[inline]
|
||||
pub fn clear_cache(&mut self) -> &mut Self {
|
||||
#[cfg(not(feature = "sync"))]
|
||||
self.cache.borrow_mut().clear();
|
||||
|
Reference in New Issue
Block a user