From 8e1c0e5141fa93f9169c28f32093bb7b30cd4e05 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Sat, 27 Aug 2022 20:50:05 +0530 Subject: perf(runtime): optimize allocations in read/write checks (#15631) --- core/normalize_path.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'core/normalize_path.rs') diff --git a/core/normalize_path.rs b/core/normalize_path.rs index 150f30b59..a295b55e6 100644 --- a/core/normalize_path.rs +++ b/core/normalize_path.rs @@ -9,6 +9,7 @@ use std::path::PathBuf; /// /// Taken from Cargo /// +#[inline] pub fn normalize_path>(path: P) -> PathBuf { let mut components = path.as_ref().components().peekable(); let mut ret = -- cgit v1.2.3