From 0b353134f14513b0d057c9288761bf17876e0b84 Mon Sep 17 00:00:00 2001 From: TotallyNot <44345987+TotallyNot@users.noreply.github.com> Date: Thu, 4 Apr 2024 16:38:22 +0200 Subject: [PATCH] more visibility adjustments --- torn-key-pool/Cargo.toml | 2 +- torn-key-pool/src/lib.rs | 4 ++-- torn-key-pool/src/send.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/torn-key-pool/Cargo.toml b/torn-key-pool/Cargo.toml index ccc3843..d8a4191 100644 --- a/torn-key-pool/Cargo.toml +++ b/torn-key-pool/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "torn-key-pool" -version = "0.8.2" +version = "0.8.3" edition = "2021" authors = ["Pyrit [2111649]"] license = "MIT" diff --git a/torn-key-pool/src/lib.rs b/torn-key-pool/src/lib.rs index 2e6d428..0524829 100644 --- a/torn-key-pool/src/lib.rs +++ b/torn-key-pool/src/lib.rs @@ -207,7 +207,7 @@ pub trait KeyPoolStorage { } #[derive(Debug, Default)] -struct PoolOptions { +pub struct PoolOptions { comment: Option, hooks_before: std::collections::HashMap>, hooks_after: std::collections::HashMap>, @@ -228,7 +228,7 @@ impl<'a, C, S> KeyPoolExecutor<'a, C, S> where S: KeyPoolStorage, { - fn new( + pub fn new( storage: &'a S, selector: KeySelector, options: Arc, diff --git a/torn-key-pool/src/send.rs b/torn-key-pool/src/send.rs index ef952d6..1c3c93d 100644 --- a/torn-key-pool/src/send.rs +++ b/torn-key-pool/src/send.rs @@ -267,9 +267,9 @@ where C: ApiClient, S: KeyPoolStorage, { - client: C, + pub client: C, pub storage: S, - options: Arc, + pub options: Arc, } impl KeyPool