scsys_core/utils/
alloc.rs

1/*
2    Appellation: alloc <module>
3    Contrib: FL03 <jo3mccain@icloud.com>
4*/
5
6use alloc::string::String;
7/// Remove the first and last charecters of a string
8pub fn fnl_remove(data: impl ToString) -> String {
9    let data = data.to_string();
10    let mut chars = data.chars();
11    chars.next();
12    chars.next_back();
13    chars.as_str().to_string()
14}