mirror of
https://github.com/rosenpass/rosenpass.git
synced 2025-12-12 15:49:22 -08:00
chore: Remove unnecessary imports
This commit is contained in:
@@ -10,8 +10,6 @@
|
|||||||
//! The [KEM] Trait describes the basic API offered by a Key Encapsulation
|
//! The [KEM] Trait describes the basic API offered by a Key Encapsulation
|
||||||
//! Mechanism. Two implementations for it are provided, [StaticKEM] and [EphemeralKEM].
|
//! Mechanism. Two implementations for it are provided, [StaticKEM] and [EphemeralKEM].
|
||||||
|
|
||||||
use std::result::Result;
|
|
||||||
|
|
||||||
/// Key Encapsulation Mechanism
|
/// Key Encapsulation Mechanism
|
||||||
///
|
///
|
||||||
/// The KEM interface defines three operations: Key generation, key encapsulation and key
|
/// The KEM interface defines three operations: Key generation, key encapsulation and key
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::convert::TryInto;
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use std::ops::{Deref, DerefMut};
|
use std::ops::{Deref, DerefMut};
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ use anyhow::ensure;
|
|||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::io::Read;
|
use std::io::Read;
|
||||||
use std::os::unix::fs::OpenOptionsExt;
|
use std::os::unix::fs::OpenOptionsExt;
|
||||||
use std::result::Result;
|
|
||||||
use std::{fs::OpenOptions, path::Path};
|
use std::{fs::OpenOptions, path::Path};
|
||||||
|
|
||||||
pub enum Visibility {
|
pub enum Visibility {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
use std::convert::Infallible;
|
use std::convert::Infallible;
|
||||||
use std::result::Result;
|
|
||||||
|
|
||||||
/// Try block basically…returns a result and allows the use of the question mark operator inside
|
/// Try block basically…returns a result and allows the use of the question mark operator inside
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
use std::result::Result;
|
|
||||||
use std::str::{from_utf8, Utf8Error};
|
use std::str::{from_utf8, Utf8Error};
|
||||||
|
|
||||||
use zerocopy::{AsBytes, FromBytes, FromZeroes};
|
use zerocopy::{AsBytes, FromBytes, FromZeroes};
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
use std::borrow::BorrowMut;
|
use std::borrow::BorrowMut;
|
||||||
use std::result::Result;
|
|
||||||
|
|
||||||
use rosenpass_secret_memory::{Public, Secret};
|
use rosenpass_secret_memory::{Public, Secret};
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ fn main() {
|
|||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
pub mod linux {
|
pub mod linux {
|
||||||
use std::io::{stdin, stdout, Read, Write};
|
use std::io::{stdin, stdout, Read, Write};
|
||||||
use std::result::Result;
|
|
||||||
|
|
||||||
use rosenpass_wireguard_broker::api::msgs;
|
use rosenpass_wireguard_broker::api::msgs;
|
||||||
use rosenpass_wireguard_broker::api::server::BrokerServer;
|
use rosenpass_wireguard_broker::api::server::BrokerServer;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
use rosenpass_secret_memory::{Public, Secret};
|
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_KEY_LEN: usize = 32;
|
||||||
pub const WG_PEER_LEN: usize = 32;
|
pub const WG_PEER_LEN: usize = 32;
|
||||||
|
|||||||
Reference in New Issue
Block a user