diff --git a/crates/libs/core/src/imp/factory_cache.rs b/crates/libs/core/src/imp/factory_cache.rs index b24cb4bb6c..fd7e5fc287 100644 --- a/crates/libs/core/src/imp/factory_cache.rs +++ b/crates/libs/core/src/imp/factory_cache.rs @@ -127,7 +127,7 @@ where F: FnMut(crate::PCSTR) -> crate::Result, { let suffix = b".dll\0"; - let mut library = vec![0; path.len() + suffix.len()]; + let mut library = alloc::vec![0; path.len() + suffix.len()]; while let Some(pos) = path.rfind('.') { path = &path[..pos]; library.truncate(path.len() + suffix.len());