refactor: Apply cargo reccomended cleanups

This commit is contained in:
0xalivecow 2024-11-02 14:19:21 +01:00
parent 26ca12b419
commit 1ce30e1cea
No known key found for this signature in database
11 changed files with 12 additions and 21 deletions

View file

@ -1,4 +1,4 @@
use crate::utils::poly::{b64_2_num, block_2_polynomial, get_coefficients};
use crate::utils::poly::block_2_polynomial;
use anyhow::Result;
use base64::prelude::*;
use serde_json::Value;
@ -19,7 +19,7 @@ pub fn block2poly(val: &Value) -> Result<Vec<u8>> {
#[cfg(test)]
mod tests {
use serde_json::json;
use std::str::FromStr;
// Note this useful idiom: importing names from outer (for mod tests) scope.
use super::*;