From 0a5ffcc9410be21fb0b5daf1d4d8cf02e09fcdc2 Mon Sep 17 00:00:00 2001 From: Erarnitox <49777103+Erarnitox@users.noreply.github.com> Date: Tue, 16 Apr 2024 22:04:00 +0200 Subject: [PATCH] capturing "bot" is not needed. Removing it resolves an unused variable warning. --- src/unittest/test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unittest/test.cpp b/src/unittest/test.cpp index fb599462a1..f1a64d2c0e 100644 --- a/src/unittest/test.cpp +++ b/src/unittest/test.cpp @@ -977,7 +977,7 @@ Markdown lol \\|\\|spoiler\\|\\| \\~\\~strikethrough\\~\\~ \\`small \\*code\\* b return; } g.remove_icon(); - bot.guild_edit(g, [&bot](const dpp::confirmation_callback_t &result) { + bot.guild_edit(g, [](const dpp::confirmation_callback_t &result) { if (result.is_error()) { set_status(GUILD_EDIT, ts_failed, "guild_edit 2 errored:\n" + result.get_error().human_readable); return;