From e0afd26e277b4bb66b2b12c8b09ea592483a8884 Mon Sep 17 00:00:00 2001 From: haixuanTao Date: Mon, 11 Nov 2024 04:04:40 +0100 Subject: [PATCH] fix clippy --- binaries/cli/src/up.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binaries/cli/src/up.rs b/binaries/cli/src/up.rs index 3a365830d..16f1a4c1f 100644 --- a/binaries/cli/src/up.rs +++ b/binaries/cli/src/up.rs @@ -101,7 +101,7 @@ fn start_coordinator() -> eyre::Result<()> { .context("Could not get first argument correspond to dora with python installation")? } else { std::env::args_os() - .nth(0) + .next() .context("Could not get dora path")? }; let mut cmd = Command::new(path); @@ -121,7 +121,7 @@ fn start_daemon() -> eyre::Result<()> { .context("Could not get first argument correspond to dora with python installation")? } else { std::env::args_os() - .nth(0) + .next() .context("Could not get dora path")? }; let mut cmd = Command::new(path);