Skip to content

Commit 3e2e29b

Browse files
Fix for 1.81
1 parent 740e497 commit 3e2e29b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/failures.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct MyError;
1616
impl FailureExample for FailureExampleImpl {
1717
async fn do_run(&self, context: Context<'_>) -> Result<(), TerminalError> {
1818
context
19-
.run(|| async move {
19+
.run::<_, _, ()>(|| async move {
2020
if rand::thread_rng().next_u32() % 4 == 0 {
2121
Err(TerminalError::new("Failed!!!"))?
2222
}

test-services/src/failing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl Failing for FailingImpl {
7272
error_message: String,
7373
) -> HandlerResult<()> {
7474
context
75-
.run(|| async move { Err(TerminalError::new(error_message))? })
75+
.run::<_, _, ()>(|| async move { Err(TerminalError::new(error_message))? })
7676
.await?;
7777

7878
unreachable!("This should be unreachable")

0 commit comments

Comments
 (0)