Skip to content

Commit

Permalink
unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Jan 6, 2025
1 parent 27f7bbd commit a5a88cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion crates/core/src/ring/connection.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::Location;
use super::PeerKeyLocation;
use crate::node::PeerId;

use std::time::Instant;

#[derive(Clone, Debug)]
Expand All @@ -9,6 +9,9 @@ pub struct Connection {
pub(crate) open_at: Instant,
}

#[cfg(test)]
use crate::node::PeerId;

#[cfg(test)]
impl Connection {
pub fn new(peer: PeerId, location: Location) -> Self {
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/ring/peer_key_location.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::Location;
use crate::node::PeerId;
use serde::{Deserialize, Serialize};
use std::{fmt::Display, hash::Hash, time::Instant};
use std::{fmt::Display, hash::Hash};

#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
#[cfg_attr(test, derive(arbitrary::Arbitrary))]
Expand Down

0 comments on commit a5a88cb

Please sign in to comment.