libstore: de-ref {Derived,Built}Path::Built drvPath

they're no longer recursive, so this is perfectly fine.

Change-Id: If565a557f2c2074e2a96a7f89c51ff1c51146b36
This commit is contained in:
eldritch horrors
2025-05-12 13:37:54 +02:00
parent 84c1df46ea
commit ccdd916226
34 changed files with 87 additions and 89 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ TEST(NixStringContextElemTest, built_opaque) {
auto * p = std::get_if<NixStringContextElem::Built>(&elem.raw);
ASSERT_TRUE(p);
ASSERT_EQ(p->output, "foo");
ASSERT_EQ(*p->drvPath, (SingleDerivedPath::Opaque {
ASSERT_EQ(p->drvPath, (SingleDerivedPath::Opaque {
.path = StorePath { built.substr(5) },
}));
ASSERT_EQ(elem.to_string(), built);