Fix formatting & clippy lints.
This commit is contained in:
parent
85156e2b7c
commit
aa039819df
|
@ -434,6 +434,7 @@ impl<Cache> TestState<Cache> {
|
|||
/// Invokes [`propose_shielding`] with the given arguments.
|
||||
#[cfg(feature = "transparent-inputs")]
|
||||
#[allow(clippy::type_complexity)]
|
||||
#[allow(dead_code)]
|
||||
pub(crate) fn propose_shielding<InputsT>(
|
||||
&mut self,
|
||||
input_selector: &InputsT,
|
||||
|
@ -576,6 +577,7 @@ impl<Cache> TestState<Cache> {
|
|||
.unwrap()
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub(crate) fn get_pending_change(
|
||||
&self,
|
||||
account: AccountId,
|
||||
|
|
|
@ -36,8 +36,7 @@ impl<P: consensus::Parameters> RusqliteMigration for Migration<P> {
|
|||
type Error = WalletMigrationError;
|
||||
|
||||
fn up(&self, transaction: &rusqlite::Transaction) -> Result<(), Self::Error> {
|
||||
transaction.execute_batch(
|
||||
&format!(
|
||||
transaction.execute_batch(&format!(
|
||||
"CREATE VIEW v_sapling_shard_scan_ranges AS
|
||||
SELECT
|
||||
shard.shard_index,
|
||||
|
@ -62,9 +61,12 @@ impl<P: consensus::Parameters> RusqliteMigration for Migration<P> {
|
|||
)",
|
||||
SAPLING_SHARD_HEIGHT,
|
||||
SAPLING_SHARD_HEIGHT,
|
||||
u32::from(self.params.activation_height(NetworkUpgrade::Sapling).unwrap()),
|
||||
)
|
||||
)?;
|
||||
u32::from(
|
||||
self.params
|
||||
.activation_height(NetworkUpgrade::Sapling)
|
||||
.unwrap()
|
||||
),
|
||||
))?;
|
||||
|
||||
transaction.execute_batch(&format!(
|
||||
"CREATE VIEW v_sapling_shard_unscanned_ranges AS
|
||||
|
|
Loading…
Reference in New Issue