summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorDevin Ragotzy <devin.ragotzy@gmail.com>2020-08-03 20:56:14 -0400
committerDevin Ragotzy <devin.ragotzy@gmail.com>2020-08-03 20:56:14 -0400
commitda1c53aaef07fd937661d116fba74cfe86588762 (patch)
tree5d8aa1cc9a16953f050f2fbbdc40f4e73c6eb7f4 /src/lib.rs
parent4a8bc93b1af1cd5c559a9ea8e5194e9bf5f8ae0b (diff)
downloadconduit-da1c53aaef07fd937661d116fba74cfe86588762.zip
Make State struct constructable by lib user
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index d6f0b55..96236bf 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;