Skip to content

Commit

Permalink
fixup! Drop redundant #![feature(assert_matches)]
Browse files Browse the repository at this point in the history
  • Loading branch information
pbeza committed Aug 27, 2024
1 parent 145e7b6 commit e6e8dcf
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 10 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions core/lib/multivm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ vise.workspace = true

[dev-dependencies]
tokio = { workspace = true, features = ["time"] }
assert_matches.workspace = true
zksync_test_account.workspace = true
ethabi.workspace = true
zksync_eth_signer.workspace = true
3 changes: 1 addition & 2 deletions core/lib/multivm/src/versions/vm_fast/tests/bootloader.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::assert_matches::assert_matches;

use assert_matches::assert_matches;
use zksync_types::U256;

use crate::{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::assert_matches::assert_matches;
use assert_matches::assert_matches;

use crate::{
interface::{ExecutionResult, VmExecutionMode, VmInterface},
Expand Down
3 changes: 1 addition & 2 deletions core/lib/multivm/src/versions/vm_latest/tests/bootloader.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::assert_matches::assert_matches;

use assert_matches::assert_matches;
use zksync_types::U256;

use crate::{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::assert_matches::assert_matches;
use assert_matches::assert_matches;

use crate::{
interface::{ExecutionResult, VmExecutionMode, VmInterface},
Expand Down
2 changes: 1 addition & 1 deletion core/lib/types/src/contract_verification_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ pub enum DeployContractCalldata {

#[cfg(test)]
mod tests {
use std::assert_matches::assert_matches;
use assert_matches::assert_matches;

use super::SourceCodeData;

Expand Down
3 changes: 1 addition & 2 deletions core/lib/types/src/transaction_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -980,8 +980,7 @@ pub fn validate_factory_deps(

#[cfg(test)]
mod tests {
use std::assert_matches::assert_matches;

use assert_matches::assert_matches;
use zksync_crypto_primitives::K256PrivateKey;

use super::*;
Expand Down
3 changes: 3 additions & 0 deletions core/lib/vm_interface/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ hex.workspace = true
serde.workspace = true
thiserror.workspace = true
tracing.workspace = true

[dev-dependencies]
assert_matches.workspace = true
2 changes: 1 addition & 1 deletion core/lib/vm_interface/src/types/errors/vm_revert_reason.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl fmt::Display for VmRevertReason {

#[cfg(test)]
mod tests {
use std::assert_matches::assert_matches;
use assert_matches::assert_matches;

use super::VmRevertReason;

Expand Down

0 comments on commit e6e8dcf

Please sign in to comment.