mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-29 14:30:31 +08:00
lib: Improve cob abstraction module structure
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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..])
|
||||
}
|
||||
Reference in New Issue
Block a user