From 8d80359c3841f1b82b8001520bf85853c8d516a1 Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Wed, 12 Oct 2022 11:53:08 +0100 Subject: [PATCH] radicle: remove verified field in Remote The `V` parameter of `Remote` is already determined by the `refs` field. The `verified: PhantomData` field is not required. Remove the `verified` field to simplify the `Remote` struct. Signed-off-by: Fintan Halpenny --- radicle/src/storage.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/radicle/src/storage.rs b/radicle/src/storage.rs index edca9e88..95a5eeed 100644 --- a/radicle/src/storage.rs +++ b/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 { pub refs: SignedRefs, /// 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, } impl Remote { @@ -191,7 +188,6 @@ impl Remote { id, refs: refs.into(), delegate: false, - verified: PhantomData, } } } @@ -204,7 +200,6 @@ impl Remote { id: self.id, refs, delegate: self.delegate, - verified: PhantomData, }) } } @@ -215,7 +210,6 @@ impl Remote { id: self.id, refs: self.refs.unverified(), delegate: self.delegate, - verified: PhantomData, } } }