Skip to content

Commit

Permalink
Disable rustfmt for one line in keys.rs module to prevent removing do…
Browse files Browse the repository at this point in the history
…uble column in the use of external zip32 crate
  • Loading branch information
dmidem committed Apr 30, 2024
1 parent 7969b9e commit 47f7aae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ use pasta_curves::{pallas, pallas::Scalar};
use rand::{rngs::OsRng, RngCore};
use subtle::{Choice, ConditionallySelectable, ConstantTimeEq, CtOption};
use zcash_note_encryption_zsa::EphemeralKeyBytes;
//use zip32::{AccountId, ChildIndex};

use crate::{
address::Address,
Expand All @@ -41,6 +40,9 @@ use crate::{
},
};

// Disable rustfmt to preserve '::' which specifies the external 'zip32' crate,
// avoiding confusion with a local module of the same name.
#[rustfmt::skip]
pub use ::zip32::{AccountId, ChildIndex, DiversifierIndex, Scope};

const KDF_ORCHARD_PERSONALIZATION: &[u8; 16] = b"Zcash_OrchardKDF";
Expand Down

0 comments on commit 47f7aae

Please sign in to comment.