Skip to content

Commit 5cb1dda

Browse files
committed
Pass CT as value instead of ref
- Remove unnecessary clones
1 parent 2b8e09b commit 5cb1dda

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

crates/cli/src/commands/test/mev.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl TestCaseMev {
108108
pub async fn run(
109109
args: TestMevArgs,
110110
writer: &mut dyn Write,
111-
token: &CancellationToken,
111+
token: CancellationToken,
112112
) -> Result<TestCategoryResult> {
113113
must_output_to_file_on_quiet(args.test_config.quiet, &args.test_config.output_json)?;
114114

crates/cli/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async fn run() -> std::result::Result<(), CliError> {
5555
Commands::Relay(args) => {
5656
let config: pluto_relay_server::config::Config = (*args).clone().try_into()?;
5757
pluto_tracing::init(&config.log_config).expect("Failed to initialize tracing");
58-
commands::relay::run(config, ct.clone()).await
58+
commands::relay::run(config, ct).await
5959
}
6060
Commands::Alpha(args) => match args.command {
6161
AlphaCommands::Test(args) => {
@@ -67,7 +67,7 @@ async fn run() -> std::result::Result<(), CliError> {
6767
TestCommands::Beacon(args) => {
6868
pluto_tracing::init(&pluto_tracing::TracingConfig::default())
6969
.expect("Failed to initialize tracing");
70-
commands::test::beacon::run(args, &mut stdout, ct.clone())
70+
commands::test::beacon::run(args, &mut stdout, ct)
7171
.await
7272
.map(|_| ())
7373
}
@@ -76,7 +76,7 @@ async fn run() -> std::result::Result<(), CliError> {
7676
.await
7777
.map(|_| ())
7878
}
79-
TestCommands::Mev(args) => commands::test::mev::run(args, &mut stdout, &ct)
79+
TestCommands::Mev(args) => commands::test::mev::run(args, &mut stdout, ct)
8080
.await
8181
.map(|_| ()),
8282
TestCommands::Infra(args) => commands::test::infra::run(args, &mut stdout)

0 commit comments

Comments
 (0)