first pass of merging in warp (doesn't build)

This commit is contained in:
Ryan Ward
2026-07-01 16:08:58 -05:00
parent 2f64909469
commit 4770ac06b5
3662 changed files with 414574 additions and 89772 deletions
+3 -2
View File
@@ -1,8 +1,9 @@
use core::pin::Pin;
use std::task::{Context, Poll};
use futures::{Sink, Stream};
use futures_util::stream::FusedStream;
use pin_project::pin_project;
use std::task::{Context, Poll};
/// Maps the error returned by the [`Sink`] using the provided `err` function.
pub fn map_err<S, I, E>(sink: S, err: impl FnMut(S::Error) -> E) -> impl Sink<I, Error = E>
@@ -13,7 +14,7 @@ where
}
/// Helper struct to map the [`Err`] of an underlying [`Sink`].
/// This is a fork of the the `SinkMapErr` defined within `futures-util`
/// This is a fork of the `SinkMapErr` defined within `futures-util`
/// (https://docs.rs/futures/latest/futures/sink/struct.SinkMapErr.html) except that it does _not_
/// panic if the caller tries to write to the sink after a previous attempt to write returned an
/// error. See <https://github.com/rust-lang/futures-rs/issues/2108> for more details about the