Change some #[inline(always)] to [#inline].

This commit is contained in:
Stephen Chung
2021-07-10 11:06:13 +08:00
parent 4d25fd0192
commit e0673a2f1a
18 changed files with 109 additions and 138 deletions

View File

@@ -200,7 +200,7 @@ impl FileModuleResolver {
}
/// Is a particular path cached?
#[inline(always)]
#[inline]
#[must_use]
pub fn is_cached(&self, path: &str, source_path: Option<&str>) -> bool {
if !self.cache_enabled {
@@ -227,7 +227,7 @@ impl FileModuleResolver {
/// Remove the specified path from internal cache.
///
/// The next time this path is resolved, the script file will be loaded once again.
#[inline(always)]
#[inline]
#[must_use]
pub fn clear_cache_for_path(
&mut self,
@@ -252,7 +252,6 @@ impl FileModuleResolver {
}
/// Construct a full file path.
#[must_use]
#[must_use]
fn get_file_path(&self, path: &str, source_path: Option<&str>) -> PathBuf {
let path = Path::new(path);