Skip to content

Commit

Permalink
Use a simpler way of ascribing a type to an empty slice.
Browse files Browse the repository at this point in the history
Signed-off-by: Daira-Emma Hopwood <daira@jacaranda.org>
  • Loading branch information
daira committed Jun 18, 2024
1 parent 6f4a3b1 commit c9c7fa3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions zcash_client_backend/src/fees/fixed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ mod tests {
Network::TestNetwork
.activation_height(NetworkUpgrade::Nu5)
.unwrap(),
&Vec::<TestTransparentInput>::new(),
&Vec::<TxOut>::new(),
&[] as &[TestTransparentInput],
&[] as &[TxOut],
&(
sapling::builder::BundleType::DEFAULT,
&[TestSaplingInput {
Expand Down Expand Up @@ -155,8 +155,8 @@ mod tests {
Network::TestNetwork
.activation_height(NetworkUpgrade::Nu5)
.unwrap(),
&Vec::<TestTransparentInput>::new(),
&Vec::<TxOut>::new(),
&[] as &[TestTransparentInput],
&[] as &[TxOut],
&(
sapling::builder::BundleType::DEFAULT,
&[
Expand Down
24 changes: 12 additions & 12 deletions zcash_client_backend/src/fees/zip317.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ mod tests {
Network::TestNetwork
.activation_height(NetworkUpgrade::Nu5)
.unwrap(),
&Vec::<TestTransparentInput>::new(),
&Vec::<TxOut>::new(),
&[] as &[TestTransparentInput],
&[] as &[TxOut],
&(
sapling::builder::BundleType::DEFAULT,
&[TestSaplingInput {
Expand Down Expand Up @@ -297,19 +297,19 @@ mod tests {
Network::TestNetwork
.activation_height(NetworkUpgrade::Nu5)
.unwrap(),
&Vec::<TestTransparentInput>::new(),
&Vec::<TxOut>::new(),
&[] as &[TestTransparentInput],
&[] as &[TxOut],
&(
sapling::builder::BundleType::DEFAULT,
&[TestSaplingInput {
note_id: 0,
value: NonNegativeAmount::const_from_u64(55000),
}][..],
&Vec::<Infallible>::new()[..],
&[] as &[Infallible],
),
&(
orchard::builder::BundleType::DEFAULT,
&Vec::<Infallible>::new()[..],
&[] as &[Infallible],
&[OrchardPayment::new(NonNegativeAmount::const_from_u64(
30000,
))][..],
Expand Down Expand Up @@ -339,7 +339,7 @@ mod tests {
Network::TestNetwork
.activation_height(NetworkUpgrade::Nu5)
.unwrap(),
&Vec::<TestTransparentInput>::new(),
&[] as &[TestTransparentInput],
&[TxOut {
value: NonNegativeAmount::const_from_u64(40000),
script_pubkey: Script(vec![]),
Expand All @@ -350,7 +350,7 @@ mod tests {
note_id: 0,
value: NonNegativeAmount::const_from_u64(55000),
}][..],
&Vec::<Infallible>::new()[..],
&[] as &[Infallible],
),
#[cfg(feature = "orchard")]
&orchard_fees::EmptyBundleView,
Expand Down Expand Up @@ -378,8 +378,8 @@ mod tests {
Network::TestNetwork
.activation_height(NetworkUpgrade::Nu5)
.unwrap(),
&Vec::<TestTransparentInput>::new(),
&Vec::<TxOut>::new(),
&[] as &[TestTransparentInput],
&[] as &[TxOut],
&(
sapling::builder::BundleType::DEFAULT,
&[
Expand Down Expand Up @@ -422,8 +422,8 @@ mod tests {
Network::TestNetwork
.activation_height(NetworkUpgrade::Nu5)
.unwrap(),
&Vec::<TestTransparentInput>::new(),
&Vec::<TxOut>::new(),
&[] as &[TestTransparentInput],
&[] as &[TxOut],
&(
sapling::builder::BundleType::DEFAULT,
&[
Expand Down

0 comments on commit c9c7fa3

Please sign in to comment.