fix(registry): make public

This commit is contained in:
Nova
2022-06-11 23:21:25 -04:00
parent bd6589757c
commit 5a54a1c40c

View File

@@ -2,7 +2,7 @@ use anyhow::{anyhow, Result};
use slab::{Iter, Slab};
use std::sync::RwLock;
struct Registry<T>(RwLock<Slab<T>>);
pub struct Registry<T>(RwLock<Slab<T>>);
impl<T> Registry<T> {
pub fn add(&self, t: T) -> Result<usize> {