Satisfy msrv by removing then_some.

This commit is contained in:
Stephen Chung
2023-02-21 18:16:03 +08:00
parent c58b52f2cb
commit 14e205cabc
5 changed files with 8 additions and 8 deletions

View File

@@ -140,7 +140,7 @@ impl Engine {
auto_restore! { let orig_level = global.level; global.level += 1 }
let context = need_context
.then_some((self, op_x_str, global.source(), &*global, pos).into());
.then(|| (self, op_x_str, global.source(), &*global, pos).into());
return func(context, args).map(|_| ());
}
}