From c54a7733b9ef954960bb8d0a78b90a6b297b1ce5 Mon Sep 17 00:00:00 2001 From: Ethan Brierley Date: Mon, 29 Jul 2024 19:26:47 +0100 Subject: [PATCH] fix(lint): `clippy::doc_lazy_continuation` ``` error: doc list item missing indentation Error: --> reqwest-retry/src/middleware.rs:62:4 | 62 | /// `Body`'s `From` or `From` implementations. | ^ | = help: if this is supposed to be its own paragraph, add a blank line = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation = note: `-D clippy::doc-lazy-continuation` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::doc_lazy_continuation)]` help: indent this line | 62 | /// `Body`'s `From` or `From` implementations. | ++ error: doc list item missing indentation Error: --> reqwest-retry/src/middleware.rs:65:4 | 65 | /// source directly, avoiding the issue of streaming requests not being clonable. | ^ | = help: if this is supposed to be its own paragraph, add a blank line = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation help: indent this line | 65 | /// source directly, avoiding the issue of streaming requests not being clonable. | ++ error: could not compile `reqwest-retry` (lib) due to 2 previous errors ``` --- reqwest-retry/src/middleware.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reqwest-retry/src/middleware.rs b/reqwest-retry/src/middleware.rs index cd7cda3..e4f01d1 100644 --- a/reqwest-retry/src/middleware.rs +++ b/reqwest-retry/src/middleware.rs @@ -59,10 +59,10 @@ macro_rules! log_retry { /// /// Some workaround suggestions: /// * If you can fit the data in memory, you can instead build static request bodies e.g. with -/// `Body`'s `From` or `From` implementations. +/// `Body`'s `From` or `From` implementations. /// * You can wrap this middleware in a custom one which skips retries for streaming requests. /// * You can write a custom retry middleware that builds new streaming requests from the data -/// source directly, avoiding the issue of streaming requests not being clonable. +/// source directly, avoiding the issue of streaming requests not being clonable. pub struct RetryTransientMiddleware< T: RetryPolicy + Send + Sync + 'static, R: RetryableStrategy + Send + Sync + 'static = DefaultRetryableStrategy,