From 4c18ba779cf062640b2926de1b63c6ee60eae117 Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Tue, 6 Jun 2023 00:06:28 +0100 Subject: [PATCH] network: Implement Default on ServiceFlags --- bitcoin/src/network/constants.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/network/constants.rs b/bitcoin/src/network/constants.rs index 2e2ad573..202c2d69 100644 --- a/bitcoin/src/network/constants.rs +++ b/bitcoin/src/network/constants.rs @@ -441,7 +441,7 @@ impl fmt::Display for UnknownMagic { impl_std_error!(UnknownMagic); /// Flags to indicate which network services a node supports. -#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] +#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ServiceFlags(u64); impl ServiceFlags {