Skip to content

Commit 54e16f4

Browse files
committed
fix: bad field name and unused import.
1 parent 621942b commit 54e16f4

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

checks/migrator/checks/sketchpad/src/example.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pub mod test {
44
use mtma_migrator_test_types::check::checked_migration;
55
use mtma_migrator_types::migrator::MovementMigrator;
66
use mtma_node_null_core::config::Config as MtmaNullConfig;
7-
use mtma_node_test_types::prelude::{Prelude, PreludeError};
7+
use mtma_node_test_types::prelude::Prelude;
88

99
#[tokio::test]
1010
#[tracing_test::traced_test]

util/movement-aptos/movement-aptos-core/src/movement_aptos.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ where
2323
pub node_config: NodeConfig,
2424
/// The path to the log file.
2525
pub log_file: Option<PathBuf>,
26-
/// Whether to create a global rayon pool.
27-
pub create_global_rayon_pool: std::marker::PhantomData<R>,
26+
/// The runtime for the Aptos node.
27+
pub runtime: std::marker::PhantomData<R>,
2828
/// The [MovementAptosRestApi] for the Aptos node.
2929
pub rest_api: State<RestApi>,
3030
}
@@ -35,12 +35,7 @@ where
3535
{
3636
/// If you have something that marks your ability to get a runtime, you can use this.
3737
pub fn new(node_config: NodeConfig, log_file: Option<PathBuf>, _runtime: R) -> Self {
38-
Self {
39-
node_config,
40-
log_file,
41-
create_global_rayon_pool: std::marker::PhantomData,
42-
rest_api: State::new(),
43-
}
38+
Self { node_config, log_file, runtime: std::marker::PhantomData, rest_api: State::new() }
4439
}
4540

4641
/// Checks runtime availability and creates a new [MovementAptos].

0 commit comments

Comments
 (0)