Add more warnings and clean up

This commit is contained in:
Lucio Franco
2019-09-04 18:41:39 -04:00
parent 3c100c3a5e
commit 20143ba0cf
24 changed files with 101 additions and 48 deletions
+3 -3
View File
@@ -9,7 +9,7 @@ use std::pin::Pin;
use std::task::{Context, Poll};
use tokio_codec::Encoder;
pub fn encode_server<T, U>(
pub(crate) fn encode_server<T, U>(
encoder: T,
source: U,
) -> EncodeBody<impl Stream<Item = Result<BytesBuf, Status>>>
@@ -21,7 +21,7 @@ where
EncodeBody::new_server(stream)
}
pub fn encode_client<T, U>(
pub(crate) fn encode_client<T, U>(
encoder: T,
source: U,
) -> EncodeBody<impl Stream<Item = Result<BytesBuf, Status>>>
@@ -77,7 +77,7 @@ enum Role {
#[pin_project]
#[derive(Debug)]
pub struct EncodeBody<S> {
pub(crate) struct EncodeBody<S> {
#[pin]
inner: S,
error: Option<Status>,