aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/nar-info.cc
diff options
context:
space:
mode:
authorJohn Ericson <git@JohnEricson.me>2020-03-22 23:43:07 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-03-25 16:12:14 -0400
commite433d4af4cf78c88dc0cb3e8139e835470b72fd3 (patch)
treeff8d812a87c86f0418394e87a7fd4d17f2886929 /src/libstore/nar-info.cc
parenteb1911e277bfcc1b161cb996205ae1696f496099 (diff)
Extend Rust FFI
Do idiomatic C++ copy and move constructors for a few things, so wrapping structs' defaults can work.
Diffstat (limited to 'src/libstore/nar-info.cc')
-rw-r--r--src/libstore/nar-info.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/nar-info.cc b/src/libstore/nar-info.cc
index 1375094b5..87b1b656b 100644
--- a/src/libstore/nar-info.cc
+++ b/src/libstore/nar-info.cc
@@ -4,7 +4,7 @@
namespace nix {
NarInfo::NarInfo(const Store & store, const std::string & s, const std::string & whence)
- : ValidPathInfo(StorePath::dummy.clone()) // FIXME: hack
+ : ValidPathInfo(StorePath::dummy) // FIXME: hack
{
auto corrupt = [&]() {
throw Error(format("NAR info file '%1%' is corrupt") % whence);