Pre-release

I don't remember exactly what was done in this commit anymore, so don't be discourteous
This commit is contained in:
Shiroyasha 2024-05-20 22:51:07 +03:00
parent b280da2742
commit 59440154c1
Signed by: shiroyashik
GPG key ID: E4953D3940D7860A
18 changed files with 1016 additions and 185 deletions

View file

@ -33,6 +33,11 @@ pub fn _generate_hex_string(length: usize) -> String { // FIXME: Variable doesn'
hex::encode(random_bytes)
}
pub fn get_correct_array(value: &toml::Value) -> Vec<u8> {
// let res: Vec<u8>;
value.as_array().unwrap().iter().map(move |x| x.as_integer().unwrap() as u8).collect()
}
pub fn format_uuid(uuid: Uuid) -> String {
// let uuid = Uuid::parse_str(&uuid)?; TODO: Вероятно format_uuid стоит убрать
// .map_err(|_| tide::Error::from_str(StatusCode::InternalServerError, "Failed to parse UUID"))?;