Merge pull request 'Make State struct constructable by lib user' (#178) from DevinR528/conduit:library-mode into master
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/178 Reviewed-by: Timo Kösters <timo@koesters.xyz>
This commit is contained in:
		
						commit
						0f1e3d8214
					
				
					 1 changed files with 2 additions and 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; | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue