diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2023-09-14 14:57:48 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2023-09-18 10:36:11 +0100 |
commit | 0569e24b4bf923db85258baa70dbbb192ddf5aba (patch) | |
tree | e6958c81e655654cbf304463005cf01428a95dbd | |
parent | be04b0483a3e2804155e441dc9a4c2de4a5f25a8 (diff) | |
download | arti-0569e24b4bf923db85258baa70dbbb192ddf5aba.tar.gz arti-0569e24b4bf923db85258baa70dbbb192ddf5aba.zip |
tor-rtmock: MockRuntime: Work around borrowck in Rust 1.65
-rw-r--r-- | crates/tor-rtmock/src/runtime.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/tor-rtmock/src/runtime.rs b/crates/tor-rtmock/src/runtime.rs index 4b5875f93..4110b3804 100644 --- a/crates/tor-rtmock/src/runtime.rs +++ b/crates/tor-rtmock/src/runtime.rs @@ -148,6 +148,8 @@ impl MockRuntime { desc: impl Display, fut: impl Future<Output = ()> + Send + 'static, ) -> impl Debug + Clone + Send + 'static { + // MSRV: 1.65 cannot cope and erroneously claims that desc has to be 'static + let desc = desc.to_string(); self.task.spawn_identified(desc, fut) } |