summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and.mikhaylov@gmail.com>2024-03-12 10:47:05 +0100
committerDavid Lönnhager <david.l@mullvad.net>2024-03-13 17:53:42 +0100
commitea6e0b90cdf820d3375e86b1dbc550f498096a9b (patch)
tree47843259bf28e6587ff328ff9cd82311b2a93087
parent7965ae9f41a33b58efb319fa45f826e4b59d2536 (diff)
downloadmullvadvpn-ea6e0b90cdf820d3375e86b1dbc550f498096a9b.tar.xz
mullvadvpn-ea6e0b90cdf820d3375e86b1dbc550f498096a9b.zip
retry: remove unnecessary 'static lifetimes
-rw-r--r--talpid-future/src/retry.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/talpid-future/src/retry.rs b/talpid-future/src/retry.rs
index 5d9b4fb574..c2417fbfd7 100644
--- a/talpid-future/src/retry.rs
+++ b/talpid-future/src/retry.rs
@@ -6,9 +6,9 @@ use talpid_time::sleep;
/// Retries a future until it should stop as determined by the retry function, or when
/// the iterator returns `None`.
pub async fn retry_future<
- F: FnMut() -> O + 'static,
- R: FnMut(&T) -> bool + 'static,
- D: Iterator<Item = Duration> + 'static,
+ F: FnMut() -> O,
+ R: FnMut(&T) -> bool,
+ D: Iterator<Item = Duration>,
O: Future<Output = T>,
T,
>(