Explorar el Código

Fix no_std build

jD91mZM2 hace 6 años
padre
commit
2ee1054bf3
Se han modificado 1 ficheros con 2 adiciones y 5 borrados
  1. 2 5
      src/lib.rs

+ 2 - 5
src/lib.rs

@@ -8,19 +8,16 @@ extern crate alloc;
 
 #[cfg(feature = "no_std")]
 mod std {
-    pub use alloc::rc;
+    pub use alloc::{borrow, rc};
     pub use core::*;
 
-    pub mod borrow {
-        pub use alloc::borrow::Cow;
-        pub use core::borrow::Borrow;
-    }
     pub mod collections {
         pub use alloc::collections::*;
         pub use alloc::collections::BTreeMap as HashMap;
     }
     pub mod prelude {
         pub use alloc::borrow::ToOwned;
+        pub use alloc::boxed::Box;
         pub use alloc::string::String;
         pub use alloc::vec::Vec;
     }