fixup: refactor: stop using todo! for a panic!

This commit is contained in:
Joonas Koivunen
2023-05-10 18:21:19 +03:00
parent e13ae811bf
commit 7605aed5aa

View File

@@ -472,7 +472,7 @@ mod tests {
let shr = SharedRetryable::<Result<u8, InnerError>>::default();
let res = shr
.try_restart_spawn(|| async move { todo!("really unlucky") })
.try_restart_spawn(|| async move { panic!("really unlucky") })
.await;
assert!(matches!(res, Err(OuterError::AttemptPanicked)));