From 69e4c826a34eb84c36bb07338a9a292a520f5970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Wed, 5 Feb 2020 22:13:09 +0100 Subject: Fix compilation with clang --- src/pubkey.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/pubkey.h') diff --git a/src/pubkey.h b/src/pubkey.h index b14743d..607352d 100644 --- a/src/pubkey.h +++ b/src/pubkey.h @@ -106,10 +106,7 @@ optional> Signed::load(const Ref & ref) if (sig.value()->verify(data.value().ref)) sigs.push_back(sig.value()); - return Signed { - .data = data.value(), - .sigs = sigs, - }; + return Signed(*data, sigs); } template -- cgit v1.2.3