Skip to content

Commit

Permalink
Rename FeatureBitsPlace to FeatureBitsKind
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikDeSmedt committed Jan 29, 2024
1 parent 9a0335e commit 4390311
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions plugins/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,12 @@ where
}

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

pub enum FeatureBitsPlace {
pub enum FeatureBitsKind {
Node,
Channel,
Invoice,
Expand Down

0 comments on commit 4390311

Please sign in to comment.