radicle: impl AliasStore for Profile

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
Fintan Halpenny 2024-01-04 14:35:25 +00:00 committed by cloudhead
parent 7d4ce8207d
commit 93a6f90d6e
No known key found for this signature in database
1 changed files with 6 additions and 0 deletions

View File

@ -381,6 +381,12 @@ impl std::ops::DerefMut for Profile {
}
}
impl AliasStore for Profile {
fn alias(&self, nid: &NodeId) -> Option<Alias> {
self.aliases().alias(nid)
}
}
/// Holds multiple alias stores, and will try
/// them one by one when asking for an alias.
pub struct Aliases {