diff --git a/components/site/src/lib.rs b/components/site/src/lib.rs index 9e8d1d3ad3..8287c0129c 100644 --- a/components/site/src/lib.rs +++ b/components/site/src/lib.rs @@ -969,8 +969,7 @@ impl Site { if let Some(base) = base_path { let mut components = Vec::new(); for component in base.components() { - // TODO: avoid cloning the paths - components.push(component.as_os_str().to_string_lossy().as_ref().to_string()); + components.push(component.as_os_str().to_string_lossy()); } self.write_content( &components.iter().map(|x| x.as_ref()).collect::>(),