Fix lint warning in lightning-invoice when fuzzing

This commit is contained in:
Jeffrey Czyz 2024-12-04 16:00:43 -06:00
parent 55c02fdee1
commit a041463c30
No known key found for this signature in database
GPG key ID: 912EF12EA67705F5

View file

@ -1086,6 +1086,7 @@ impl RawBolt11Invoice {
/// Calculate the hash of the encoded `RawBolt11Invoice` which should be signed.
pub fn signable_hash(&self) -> [u8; 32] {
#[cfg(not(fuzzing))]
use crate::ser::Base32Iterable;
Self::hash_from_parts(self.hrp.to_string().as_bytes(), self.data.fe_iter())