From 8ba6a194e8780990720224e1227d7fb413d71e4d Mon Sep 17 00:00:00 2001 From: Jonathan de Jong Date: Sat, 13 Mar 2021 18:51:59 +0000 Subject: [PATCH] Prune lib.rs from State struct --- src/lib.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 196626e..7bd0410 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,15 +14,3 @@ 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>(pub &'r T); - -impl<'r, T: Send + Sync + 'static> Deref for State<'r, T> { - type Target = T; - - #[inline(always)] - fn deref(&self) -> &T { - self.0 - } -}