From da1c53aaef07fd937661d116fba74cfe86588762 Mon Sep 17 00:00:00 2001 From: Devin Ragotzy Date: Mon, 3 Aug 2020 20:56:14 -0400 Subject: [PATCH] Make State struct constructable by lib user --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d6f0b55c..96236bfc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,11 +9,11 @@ mod utils; pub use database::Database; pub use error::{Error, Result}; pub use pdu::PduEvent; +pub use rocket::Config; pub use ruma_wrapper::{ConduitResult, Ruma, RumaResponse}; - use std::ops::Deref; -pub struct State<'r, T: Send + Sync + 'static>(&'r T); +pub struct State<'r, T: Send + Sync + 'static>(pub &'r T); impl<'r, T: Send + Sync + 'static> Deref for State<'r, T> { type Target = T;