libexpr: Remove extra trailing semicolons (NFC)

This looks really weird after the reformat.

(cherry picked from commit df4e55ffc13c413e270af134227115a20a2341ba)
Upstream-PR: https://github.com/NixOS/nix/pull/13741
Change-Id: I8de92d58620cc4545a31d8b7d533d2f1e9f4f233
(cherry picked from commit 2ca5670ec3)
This commit is contained in:
Sergei Zimmerman
2025-09-12 17:06:38 +01:00
committed by Emily
parent 699d3a63a6
commit ad52cbde2f
-8
View File
@@ -35,7 +35,6 @@ void prim_fromTOML(EvalState & state, Value ** args, Value & val)
v.mkAttrs(attrs);
} break;
;
case toml::value_t::array: {
auto array = toml::get<std::vector<toml::value>>(t);
@@ -45,23 +44,18 @@ void prim_fromTOML(EvalState & state, Value ** args, Value & val)
visit(*(v.listElems()[i] = state.ctx.mem.allocValue()), array[i]);
}
} break;
;
case toml::value_t::boolean:
v.mkBool(toml::get<bool>(t));
break;
;
case toml::value_t::integer:
v.mkInt(toml::get<int64_t>(t));
break;
;
case toml::value_t::floating:
v.mkFloat(toml::get<NixFloat>(t));
break;
;
case toml::value_t::string:
v.mkString(toml::get<std::string>(t));
break;
;
case toml::value_t::local_datetime:
case toml::value_t::offset_datetime:
case toml::value_t::local_date:
@@ -78,11 +72,9 @@ void prim_fromTOML(EvalState & state, Value ** args, Value & val)
throw std::runtime_error("Dates and times are not supported");
}
} break;
;
case toml::value_t::empty:
v.mkNull();
break;
;
}
};