Rename FeatureBitsPlace to FeatureBitsKind

This commit is contained in:
Erik De Smedt 2024-01-17 11:43:13 +01:00 committed by Christian Decker
parent 870e25e180
commit 085960b054

View file

@ -222,12 +222,12 @@ where
} }
/// Sets the "featurebits" in the "getmanifest" response /// Sets the "featurebits" in the "getmanifest" response
pub fn featurebits(mut self, place: FeatureBitsPlace, hex: String) -> Self { pub fn featurebits(mut self, kind: FeatureBitsKind, hex: String) -> Self {
match place { match kind {
FeatureBitsPlace::Node => self.featurebits.node = Some(hex), FeatureBitsKind::Node => self.featurebits.node = Some(hex),
FeatureBitsPlace::Channel => self.featurebits.channel = Some(hex), FeatureBitsKind::Channel => self.featurebits.channel = Some(hex),
FeatureBitsPlace::Init => self.featurebits.init = Some(hex), FeatureBitsKind::Init => self.featurebits.init = Some(hex),
FeatureBitsPlace::Invoice => self.featurebits.invoice = Some(hex), FeatureBitsKind::Invoice => self.featurebits.invoice = Some(hex),
} }
self self
} }
@ -788,7 +788,7 @@ where
} }
} }
pub enum FeatureBitsPlace { pub enum FeatureBitsKind {
Node, Node,
Channel, Channel,
Invoice, Invoice,