summaryrefslogtreecommitdiffstats
path: root/vendor/gix-packetline/src/read/async_io.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gix-packetline/src/read/async_io.rs')
-rw-r--r--vendor/gix-packetline/src/read/async_io.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/vendor/gix-packetline/src/read/async_io.rs b/vendor/gix-packetline/src/read/async_io.rs
index e0d53d397..bb4dcf2c1 100644
--- a/vendor/gix-packetline/src/read/async_io.rs
+++ b/vendor/gix-packetline/src/read/async_io.rs
@@ -6,7 +6,7 @@ use futures_lite::AsyncReadExt;
use crate::{
decode,
- read::{ExhaustiveOutcome, WithSidebands},
+ read::{ExhaustiveOutcome, ProgressAction, WithSidebands},
PacketLineRef, StreamingPeekableIter, MAX_LINE_LEN, U16_HEX_BYTES,
};
@@ -150,7 +150,8 @@ where
/// Same as [`as_read_with_sidebands(…)`][StreamingPeekableIter::as_read_with_sidebands()], but for channels without side band support.
///
/// Due to the preconfigured function type this method can be called without 'turbofish'.
- pub fn as_read(&mut self) -> WithSidebands<'_, T, fn(bool, &[u8])> {
+ #[allow(clippy::type_complexity)]
+ pub fn as_read(&mut self) -> WithSidebands<'_, T, fn(bool, &[u8]) -> ProgressAction> {
WithSidebands::new(self)
}
@@ -161,7 +162,7 @@ where
/// being true in case the `text` is to be interpreted as error.
///
/// _Please note_ that side bands need to be negotiated with the server.
- pub fn as_read_with_sidebands<F: FnMut(bool, &[u8]) + Unpin>(
+ pub fn as_read_with_sidebands<F: FnMut(bool, &[u8]) -> ProgressAction + Unpin>(
&mut self,
handle_progress: F,
) -> WithSidebands<'_, T, F> {
@@ -172,7 +173,9 @@ where
///
/// The type parameter `F` needs to be configured for this method to be callable using the 'turbofish' operator.
/// Use [`as_read()`][StreamingPeekableIter::as_read()].
- pub fn as_read_without_sidebands<F: FnMut(bool, &[u8]) + Unpin>(&mut self) -> WithSidebands<'_, T, F> {
+ pub fn as_read_without_sidebands<F: FnMut(bool, &[u8]) -> ProgressAction + Unpin>(
+ &mut self,
+ ) -> WithSidebands<'_, T, F> {
WithSidebands::without_progress_handler(self)
}
}