Browse Source

Merge branch 'jonathandejong02-master-patch-93269' into 'master'

Prune State struct from lib.rs

See merge request famedly/conduit!40
merge-requests/40/merge
Jonathan de Jong 5 years ago
parent
commit
d0483d891e
  1. 12
      src/lib.rs

12
src/lib.rs

@ -14,15 +14,3 @@ pub use error::{Error, Result}; @@ -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
}
}

Loading…
Cancel
Save