refactor: Apply cargo reccomended cleanups
This commit is contained in:
parent
26ca12b419
commit
1ce30e1cea
11 changed files with 12 additions and 21 deletions
|
|
@ -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::*;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue