added expected and fmt for cleaner code/interfaces

This commit is contained in:
2021-08-01 21:42:41 +02:00
parent 7f8a185678
commit 4d2e9305dc
9 changed files with 88 additions and 47 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ char *toString(const espchrono::seconds32 &val)
}
template<>
char *toString(const std::optional<espchrono::seconds32> &val)
char *toString(const tl::expected<espchrono::seconds32, std::string> &val)
{
return val ? ::QTest::toString(*val) : ::QTest::toString("(invalid)");
}