refactor: Switch to async closures

This commit is contained in:
2025-09-01 03:18:56 +02:00
parent e21ea0f34e
commit 1b8566e593
8 changed files with 109 additions and 124 deletions

View File

@@ -170,7 +170,7 @@ impl AddAdditionalMethods for Ntfy {
{
methods.add_async_method(
"send_notification",
|lua, this, notification: mlua::Value| async move {
async |lua, this, notification: mlua::Value| {
let notification: Notification = lua.from_value(notification)?;
this.send(notification).await;