lib: Improve cob abstraction module structure

This commit is contained in:
Erik Kundt
2024-03-20 22:55:06 +01:00
parent a4fa4aba21
commit f1250f9c7f
11 changed files with 80 additions and 83 deletions
-1
View File
@@ -5,7 +5,6 @@ use anyhow::Result;
use radicle::cob::Label;
use radicle::prelude::Did;
pub mod format;
pub mod inbox;
pub mod issue;
pub mod patch;
-7
View File
@@ -1,7 +0,0 @@
use radicle::identity::Did;
/// Format a DID.
pub fn did(did: &Did) -> String {
let nid = did.as_key().to_human();
format!("{}…{}", &nid[..7], &nid[nid.len() - 7..])
}