update relib to be no_std

pull/1/head
Able 2022-12-06 13:57:06 -06:00
parent c6c4358c40
commit f4603d2f20
Signed by: able
GPG Key ID: 0BD8B45C30DCA887
1 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,12 @@
#![no_std]
use alloc::{
string::{String, ToString},
vec::Vec,
};
extern crate alloc;
#[derive(Debug)]
pub struct Path {
pub path: Vec<String>,
@ -5,7 +14,7 @@ pub struct Path {
impl Path {
pub fn new(path: String) -> Self {
let mut path_vec_string = vec![];
let mut path_vec_string = Vec::new();
for part in path.split(&['\\', '/'][..]) {
path_vec_string.push(part.to_string());