chore: Remove unnecessary imports

This commit is contained in:
Karolin Varner
2024-08-03 13:45:04 +02:00
parent e70c5b33a8
commit 6bbe85a57b
8 changed files with 1 additions and 9 deletions

View File

@@ -10,8 +10,6 @@
//! The [KEM] Trait describes the basic API offered by a Key Encapsulation
//! Mechanism. Two implementations for it are provided, [StaticKEM] and [EphemeralKEM].
use std::result::Result;
/// Key Encapsulation Mechanism
///
/// The KEM interface defines three operations: Key generation, key encapsulation and key

View File

@@ -1,6 +1,5 @@
use std::cell::RefCell;
use std::collections::HashMap;
use std::convert::TryInto;
use std::fmt;
use std::ops::{Deref, DerefMut};
use std::path::Path;

View File

@@ -2,7 +2,6 @@ use anyhow::ensure;
use std::fs::File;
use std::io::Read;
use std::os::unix::fs::OpenOptionsExt;
use std::result::Result;
use std::{fs::OpenOptions, path::Path};
pub enum Visibility {

View File

@@ -1,5 +1,4 @@
use std::convert::Infallible;
use std::result::Result;
/// Try block basically…returns a result and allows the use of the question mark operator inside
#[macro_export]

View File

@@ -1,4 +1,3 @@
use std::result::Result;
use std::str::{from_utf8, Utf8Error};
use zerocopy::{AsBytes, FromBytes, FromZeroes};

View File

@@ -1,5 +1,4 @@
use std::borrow::BorrowMut;
use std::result::Result;
use rosenpass_secret_memory::{Public, Secret};

View File

@@ -9,7 +9,6 @@ fn main() {
#[cfg(target_os = "linux")]
pub mod linux {
use std::io::{stdin, stdout, Read, Write};
use std::result::Result;
use rosenpass_wireguard_broker::api::msgs;
use rosenpass_wireguard_broker::api::server::BrokerServer;

View File

@@ -1,5 +1,5 @@
use rosenpass_secret_memory::{Public, Secret};
use std::{fmt::Debug, result::Result};
use std::fmt::Debug;
pub const WG_KEY_LEN: usize = 32;
pub const WG_PEER_LEN: usize = 32;