more visibility adjustments

This commit is contained in:
TotallyNot 2024-04-04 16:38:22 +02:00
parent c83c304bbe
commit e93b3529cb
3 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "torn-key-pool" name = "torn-key-pool"
version = "0.8.2" version = "0.8.3"
edition = "2021" edition = "2021"
authors = ["Pyrit [2111649]"] authors = ["Pyrit [2111649]"]
license = "MIT" license = "MIT"

View file

@ -207,7 +207,7 @@ pub trait KeyPoolStorage {
} }
#[derive(Debug, Default)] #[derive(Debug, Default)]
struct PoolOptions { pub struct PoolOptions {
comment: Option<String>, comment: Option<String>,
hooks_before: std::collections::HashMap<std::any::TypeId, Box<dyn std::any::Any + Send + Sync>>, hooks_before: std::collections::HashMap<std::any::TypeId, Box<dyn std::any::Any + Send + Sync>>,
hooks_after: std::collections::HashMap<std::any::TypeId, Box<dyn std::any::Any + Send + Sync>>, hooks_after: std::collections::HashMap<std::any::TypeId, Box<dyn std::any::Any + Send + Sync>>,
@ -228,7 +228,7 @@ impl<'a, C, S> KeyPoolExecutor<'a, C, S>
where where
S: KeyPoolStorage, S: KeyPoolStorage,
{ {
fn new( pub fn new(
storage: &'a S, storage: &'a S,
selector: KeySelector<S::Key, S::Domain>, selector: KeySelector<S::Key, S::Domain>,
options: Arc<PoolOptions>, options: Arc<PoolOptions>,

View file

@ -267,9 +267,9 @@ where
C: ApiClient, C: ApiClient,
S: KeyPoolStorage, S: KeyPoolStorage,
{ {
client: C, pub client: C,
pub storage: S, pub storage: S,
options: Arc<PoolOptions>, pub options: Arc<PoolOptions>,
} }
impl<C, S> KeyPool<C, S> impl<C, S> KeyPool<C, S>