]> git.bitcoin.ninja Git - rust-lightning/commitdiff
f - fix clippy error
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 27 Jan 2022 16:21:52 +0000 (10:21 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 2 Feb 2022 16:33:47 +0000 (10:33 -0600)
lightning/src/routing/scoring.rs

index 5faee4125b2db0c47de9d27bb498eea6419e63f7..82e52755c8f9ad0fa3f92addbe8741852973ef65 100644 (file)
@@ -651,6 +651,7 @@ impl<L: DerefMut<Target = u64>> DirectedChannelLiquidity<L> {
 }
 
 impl<G: Deref<Target = NetworkGraph>> Score for ProbabilisticScorer<G> {
+       #[allow(clippy::float_cmp)]
        fn channel_penalty_msat(
                &self, short_channel_id: u64, amount_msat: u64, capacity_msat: u64, source: &NodeId,
                target: &NodeId