]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix build warning for unused method
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 29 Sep 2023 21:03:39 +0000 (14:03 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 29 Sep 2023 22:03:23 +0000 (15:03 -0700)
lightning/src/sign/type_resolver.rs

index 8b6e8091785663df18c5ac197eed3c679b2a15d5..73d2cceb3e85f9d84bf2404d7d9cbbfc204598d0 100644 (file)
@@ -24,6 +24,7 @@ impl<ECS: EcdsaChannelSigner> ChannelSignerType<ECS>{
                }
        }
 
+       #[allow(unused)]
        pub(crate) fn as_mut_ecdsa(&mut self) -> Option<&mut ECS> {
                match self {
                        ChannelSignerType::Ecdsa(ecs) => Some(ecs)