diff --git a/module/core/proper_path_tools/src/path.rs b/module/core/proper_path_tools/src/path.rs index 471009d48f..efc527c271 100644 --- a/module/core/proper_path_tools/src/path.rs +++ b/module/core/proper_path_tools/src/path.rs @@ -216,6 +216,10 @@ pub( crate ) mod private { #[ cfg( target_os = "windows" ) ] use std::path::PathBuf; + #[ cfg( feature = "no_std" ) ] + extern crate alloc; + #[ cfg( feature = "no_std" ) ] + use alloc::string::ToString; // println!( "a" ); // let path = path.as_ref().canonicalize()?; @@ -609,7 +613,7 @@ pub( crate ) mod private /// /// * `path` - A mutable reference to a string representing the path to be cleaned. /// - fn path_remove_dots( path : &mut String ) + fn path_remove_dots( path : &mut std::string::String ) { let mut cleaned_parts = vec![]; for part in path.split( '/' )