diff options
author | Devin Ragotzy <devin.ragotzy@gmail.com> | 2020-08-03 20:56:14 -0400 |
---|---|---|
committer | Devin Ragotzy <devin.ragotzy@gmail.com> | 2020-08-03 20:56:14 -0400 |
commit | da1c53aaef07fd937661d116fba74cfe86588762 (patch) | |
tree | 5d8aa1cc9a16953f050f2fbbdc40f4e73c6eb7f4 /src/lib.rs | |
parent | 4a8bc93b1af1cd5c559a9ea8e5194e9bf5f8ae0b (diff) | |
download | conduit-da1c53aaef07fd937661d116fba74cfe86588762.zip |
Make State struct constructable by lib user
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |