From 583afa401ff6bc78351ef82832d5f61de0cdb74e Mon Sep 17 00:00:00 2001 From: Runji Wang Date: Tue, 9 Apr 2024 16:56:02 +0800 Subject: [PATCH] Update madsim/src/sim/runtime/mod.rs --- madsim/src/sim/runtime/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/madsim/src/sim/runtime/mod.rs b/madsim/src/sim/runtime/mod.rs index 3dad432..57b4a80 100644 --- a/madsim/src/sim/runtime/mod.rs +++ b/madsim/src/sim/runtime/mod.rs @@ -262,7 +262,7 @@ impl Handle { F: FnOnce() -> R + Send + 'static, R: Send + 'static, { - unimplemented!() + unimplemented!("blocking function is not allowed in simulation") } /// Returns the random seed of the current runtime.