avoid nodiscard compiler warnings

We got a lot of the warnings for unchecked Result / tl::expected; let's
handle those.
This commit is contained in:
Dirk-Jan C. Binnema
2026-08-09 18:26:42 +03:00
committed by Seth Ladygo
parent 7e32324ac4
commit 36d45b38af
11 changed files with 82 additions and 29 deletions

View File

@ -429,7 +429,10 @@ main (int argc, char *argv[])
Scanner scanner{argv[1], on_path, Mode::MaildirsOnly};
scanner.start();
if (const auto res{scanner.start()}; !res) {
mu_printerrln("scan failed: {}", res.error());
return 1;
}
return 0;
}