aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-02-14 22:42:35 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-02-14 22:42:35 +0100
commit6208d24c383e95a50e873ed987643ffa329f9428 (patch)
tree842593287ea8286066e85edb88fec638e181ee57 /src/libutil
parent9659940659b36ffab3cbd1eff9f343c9ada2491b (diff)
parent9af10b753c8a636f828b148fc3a9aecd1c0067fa (diff)
Merge remote-tracking branch 'origin/master' into flakes
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/rust-ffi.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/rust-ffi.hh b/src/libutil/rust-ffi.hh
index 469a5fba3..228e2eead 100644
--- a/src/libutil/rust-ffi.hh
+++ b/src/libutil/rust-ffi.hh
@@ -113,6 +113,8 @@ extern "C" {
struct String : Vec<char, ffi_String_drop>
{
+ String() = delete;
+
String(std::string_view s)
{
ffi_String_new(StringSlice(s), this);