refactor: Apply rust suggested changes

This commit is contained in:
0xalivecow 2024-10-23 10:24:13 +02:00
parent 067ef6141c
commit 8a92b884a1
No known key found for this signature in database
5 changed files with 6 additions and 16 deletions

View file

@ -2,10 +2,7 @@ use anyhow::{anyhow, Result};
use base64::prelude::*;
use serde_json::Value;
use crate::utils::{
ciphers::{sea_128_decrypt, sea_128_encrypt},
poly::b64_2_num,
};
use crate::utils::ciphers::{sea_128_decrypt, sea_128_encrypt};
pub fn sea128(args: &Value) -> Result<String> {
let key_string: String = serde_json::from_value(args["key"].clone())?;