aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/rust-ffi.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/rust-ffi.hh')
-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);