tokio-xmpp: remove obsolete TODOs

This commit is contained in:
Astro 2020-03-16 00:10:42 +01:00
parent 4ae9ab41ab
commit b6828b9674
2 changed files with 1 additions and 8 deletions

View file

@ -1,6 +1,4 @@
# TODO # TODO
- [ ] minidom ns - [ ] allow tls verify customization
- [ ] replace debug output with log crate
- [ ] customize tls verify?
- [ ] more tests - [ ] more tests

View file

@ -34,10 +34,6 @@ pub struct XMPPStream<S: AsyncRead + AsyncWrite + Unpin> {
pub id: String, pub id: String,
} }
// // TODO: fix this hack
// unsafe impl<S: AsyncRead + AsyncWrite + Unpin> core::marker::Send for XMPPStream<S> {}
// unsafe impl<S: AsyncRead + AsyncWrite + Unpin> Sync for XMPPStream<S> {}
impl<S: AsyncRead + AsyncWrite + Unpin> XMPPStream<S> { impl<S: AsyncRead + AsyncWrite + Unpin> XMPPStream<S> {
/// Constructor /// Constructor
pub fn new( pub fn new(
@ -63,7 +59,6 @@ impl<S: AsyncRead + AsyncWrite + Unpin> XMPPStream<S> {
} }
/// Unwraps the inner stream /// Unwraps the inner stream
// TODO: use this everywhere
pub fn into_inner(self) -> S { pub fn into_inner(self) -> S {
self.stream.into_inner().unwrap().into_inner() self.stream.into_inner().unwrap().into_inner()
} }