diff --git a/radicle/src/identity.rs b/radicle/src/identity.rs index c3a683d1..4c6a46b0 100644 --- a/radicle/src/identity.rs +++ b/radicle/src/identity.rs @@ -1,4 +1,4 @@ -pub mod doc; +pub mod project; use std::ops::Deref; use std::{ffi::OsString, fmt, str::FromStr}; @@ -11,7 +11,7 @@ use crate::git; use crate::serde_ext; pub use crypto::PublicKey; -pub use doc::{Delegate, Doc}; +pub use project::{Delegate, Doc}; #[derive(Error, Debug)] pub enum IdError { diff --git a/radicle/src/identity/doc.rs b/radicle/src/identity/project.rs similarity index 100% rename from radicle/src/identity/doc.rs rename to radicle/src/identity/project.rs diff --git a/radicle/src/rad.rs b/radicle/src/rad.rs index a9ea1139..87dfff83 100644 --- a/radicle/src/rad.rs +++ b/radicle/src/rad.rs @@ -17,9 +17,9 @@ pub const REMOTE_NAME: &str = "rad"; #[derive(Error, Debug)] pub enum InitError { #[error("doc: {0}")] - Doc(#[from] identity::doc::Error), + Doc(#[from] identity::project::Error), #[error("doc: {0}")] - DocVerification(#[from] identity::doc::VerificationError), + DocVerification(#[from] identity::project::VerificationError), #[error("git: {0}")] Git(#[from] git2::Error), #[error("i/o: {0}")] diff --git a/radicle/src/storage.rs b/radicle/src/storage.rs index b8b968ce..6c13df04 100644 --- a/radicle/src/storage.rs +++ b/radicle/src/storage.rs @@ -43,7 +43,7 @@ pub enum Error { #[error("i/o: {0}")] Io(#[from] io::Error), #[error("doc: {0}")] - Doc(#[from] identity::doc::Error), + Doc(#[from] identity::project::Error), #[error("invalid repository head")] InvalidHead, } diff --git a/radicle/src/test/arbitrary.rs b/radicle/src/test/arbitrary.rs index 779ffc03..3943c6a1 100644 --- a/radicle/src/test/arbitrary.rs +++ b/radicle/src/test/arbitrary.rs @@ -11,7 +11,7 @@ use crate::crypto; use crate::crypto::{KeyPair, PublicKey, Seed, Signer, Unverified, Verified}; use crate::git; use crate::hash; -use crate::identity::{doc::Delegate, doc::Doc, Did, Id}; +use crate::identity::{project::Delegate, project::Doc, Did, Id}; use crate::storage; use crate::storage::refs::{Refs, SignedRefs}; use crate::test::signer::MockSigner; diff --git a/radicle/src/test/storage.rs b/radicle/src/test/storage.rs index 7afe7898..9d72530c 100644 --- a/radicle/src/test/storage.rs +++ b/radicle/src/test/storage.rs @@ -4,7 +4,7 @@ use std::path::{Path, PathBuf}; use git_url::Url; use crate::crypto::{Signer, Verified}; -use crate::identity::doc::Doc; +use crate::identity::project::Doc; use crate::identity::Id; pub use crate::storage::*;