fix clippy warnings

Signed-off-by: Alex Chi Z <chi@neon.tech>
This commit is contained in:
Alex Chi Z
2024-11-13 14:48:00 -05:00
parent be9db748d9
commit f59e8be7fd

View File

@@ -84,6 +84,7 @@ where
/// for any other error type. Final failed attempt is logged with `{:?}`.
///
/// Returns `None` if cancellation was noticed during backoff or the terminal result.
#[allow(clippy::too_many_arguments)]
pub async fn retry_with_options<T, O, F, E>(
mut op: O,
is_permanent: impl Fn(&E) -> bool,