test: returning toml::value directly from into<T>

This commit is contained in:
ToruNiina
2020-12-29 18:53:10 +09:00
parent 2fb8793f1a
commit e9144b41fb

View File

@@ -70,9 +70,9 @@ struct from<extlib::foo>
template<>
struct into<extlib::foo>
{
static toml::table into_toml(const extlib::foo& f)
static toml::value into_toml(const extlib::foo& f)
{
return toml::table{{"a", f.a}, {"b", f.b}};
return toml::value{{"a", f.a}, {"b", f.b}};
}
};