From 93a6f90d6e7a973228895beecd1d0a2fab0ff2a6 Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Thu, 4 Jan 2024 14:35:25 +0000 Subject: [PATCH] radicle: impl AliasStore for Profile Signed-off-by: Fintan Halpenny X-Clacks-Overhead: GNU Terry Pratchett --- radicle/src/profile.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/radicle/src/profile.rs b/radicle/src/profile.rs index 063da411..e2a6ee3b 100644 --- a/radicle/src/profile.rs +++ b/radicle/src/profile.rs @@ -381,6 +381,12 @@ impl std::ops::DerefMut for Profile { } } +impl AliasStore for Profile { + fn alias(&self, nid: &NodeId) -> Option { + self.aliases().alias(nid) + } +} + /// Holds multiple alias stores, and will try /// them one by one when asking for an alias. pub struct Aliases {