aboutsummaryrefslogtreecommitdiff
path: root/src/model.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/model.rs')
-rw-r--r--src/model.rs11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/model.rs b/src/model.rs
index 51386a5..90f9b44 100644
--- a/src/model.rs
+++ b/src/model.rs
@@ -15,7 +15,7 @@ pub use ip::*;
pub type KeyParseError = base64::DecodeError;
-#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
+#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
pub struct Key([u8; 32]);
impl Key {
@@ -82,7 +82,7 @@ impl<'de> serde::Deserialize<'de> for Key {
}
}
-#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
+#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
pub struct Endpoint {
address: Ipv6Addr,
port: u16,
@@ -195,13 +195,6 @@ pub struct Config {
pub peers: HashMap<Key, Peer>,
}
-impl Default for Config {
- #[inline]
- fn default() -> Self {
- Self::empty()
- }
-}
-
impl Config {
#[inline]
pub fn empty() -> Self {