From 5f220855db95d006e4168356759a5b871899d759 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 4 Nov 2022 17:45:36 -0700 Subject: CLI: more derives on shared identifier code --- adenosine-cli/src/identifiers.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/adenosine-cli/src/identifiers.rs b/adenosine-cli/src/identifiers.rs index 8ea35b8..0cfe2ec 100644 --- a/adenosine-cli/src/identifiers.rs +++ b/adenosine-cli/src/identifiers.rs @@ -146,6 +146,7 @@ fn test_aturi() { } /// A String (newtype) representing an NSID +#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)] pub struct Nsid(String); impl FromStr for Nsid { @@ -202,6 +203,7 @@ fn test_nsid() { assert_eq!(nsid.domain(), "atproto.com".to_string()); } +#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)] pub struct Did(String); impl FromStr for Did { -- cgit v1.2.3