Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typos #1076

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

- **Features**:
- Add `tracing` internals in place of `log` (log is still emitted for backwards compatibility).
- Add `warp::trace` module set of filters to customize `tracing` dianostics.
- Add `warp::trace` module set of filters to customize `tracing` diagnostics.
- Add `path` method to `warp::fs::File` reply.
- Add `source` implementation for `BodyDeserializeError`.
- Make `warp::ws::MissingConnectionUpgrade` rejection public.
Expand Down
10 changes: 5 additions & 5 deletions src/filters/compression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ mod internal {
/// compatible with async_compression's Stream based encoders
#[pin_project]
#[derive(Debug)]
pub struct CompressableBody<S, E>
pub struct CompressibleBody<S, E>
where
E: std::error::Error,
S: Stream<Item = Result<Bytes, E>>,
Expand All @@ -186,7 +186,7 @@ mod internal {
body: S,
}

impl<S, E> Stream for CompressableBody<S, E>
impl<S, E> Stream for CompressibleBody<S, E>
where
E: std::error::Error,
S: Stream<Item = Result<Bytes, E>>,
Expand All @@ -201,16 +201,16 @@ mod internal {
}
}

impl From<Body> for CompressableBody<Body, hyper::Error> {
impl From<Body> for CompressibleBody<Body, hyper::Error> {
fn from(body: Body) -> Self {
CompressableBody { body }
CompressibleBody { body }
}
}

/// Compression Props
#[derive(Debug)]
pub struct CompressionProps {
pub(super) body: CompressableBody<Body, hyper::Error>,
pub(super) body: CompressibleBody<Body, hyper::Error>,
pub(super) head: http::response::Parts,
}

Expand Down
2 changes: 1 addition & 1 deletion src/reply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ use self::sealed::{BoxedReply, Internal};
#[doc(hidden)]
pub use crate::filters::reply as with;

/// Response type into which types implementing the `Reply` trait are convertable.
/// Response type into which types implementing the `Reply` trait are convertible.
pub type Response = ::http::Response<Body>;

/// Returns an empty `Reply` with status code `200 OK`.
Expand Down