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

This commit is contained in:
Joonas Koivunen
2023-05-16 15:45:36 +03:00
parent 81e8c10069
commit 4591698cd4
+1 -1
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)));