Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle: remove verified field in Remote
Fintan Halpenny committed 3 years ago
commit 8d80359c3841f1b82b8001520bf85853c8d516a1
parent a06ed9f6de015c79ba5a3a751c81801913e7514e
1 file changed +0 -6
modified radicle/src/storage.rs
@@ -2,7 +2,6 @@ pub mod git;
pub mod refs;

use std::collections::hash_map;
-
use std::marker::PhantomData;
use std::ops::Deref;
use std::path::Path;
use std::{fmt, io};
@@ -178,8 +177,6 @@ pub struct Remote<V> {
    pub refs: SignedRefs<V>,
    /// Whether this remote is a delegate for the project.
    pub delegate: bool,
-
    /// Whether the remote is verified or not, ie. whether its signed refs were checked.
-
    verified: PhantomData<V>,
}

impl<V> Remote<V> {
@@ -191,7 +188,6 @@ impl<V> Remote<V> {
            id,
            refs: refs.into(),
            delegate: false,
-
            verified: PhantomData,
        }
    }
}
@@ -204,7 +200,6 @@ impl Remote<Unverified> {
            id: self.id,
            refs,
            delegate: self.delegate,
-
            verified: PhantomData,
        })
    }
}
@@ -215,7 +210,6 @@ impl Remote<Verified> {
            id: self.id,
            refs: self.refs.unverified(),
            delegate: self.delegate,
-
            verified: PhantomData,
        }
    }
}