From b8093280e3f208d87d1da229ab367a561de6f66e Mon Sep 17 00:00:00 2001 From: jonaro00 <54029719+jonaro00@users.noreply.github.com> Date: Fri, 9 Jun 2023 16:32:08 +0200 Subject: [PATCH] clippy --- cargo-shuttle/tests/integration/init.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cargo-shuttle/tests/integration/init.rs b/cargo-shuttle/tests/integration/init.rs index 3a506c1031..9a992aba7f 100644 --- a/cargo-shuttle/tests/integration/init.rs +++ b/cargo-shuttle/tests/integration/init.rs @@ -30,7 +30,7 @@ async fn non_interactive_basic_init() { "none", temp_dir_path.to_str().unwrap(), ]); - let shuttle = Shuttle::new().unwrap().run(args).await.unwrap(); + Shuttle::new().unwrap().run(args).await.unwrap(); let cargo_toml = read_to_string(temp_dir_path.join("Cargo.toml")).unwrap(); assert!(cargo_toml.contains("name = \"my-project\"")); @@ -40,7 +40,6 @@ async fn non_interactive_basic_init() { // attempts to enter the original (temp) working directory again. // If both are dropped at the same time, the test can sometimes crash. // Added sleep here to prevent. - drop(shuttle); tokio::time::sleep(tokio::time::Duration::from_millis(500)).await; drop(temp_dir); } @@ -65,7 +64,7 @@ async fn non_interactive_rocket_init() { "rocket", temp_dir_path.to_str().unwrap(), ]); - let shuttle = Shuttle::new().unwrap().run(args).await.unwrap(); + Shuttle::new().unwrap().run(args).await.unwrap(); assert_valid_rocket_project(temp_dir_path.as_path(), "my-project"); @@ -73,7 +72,6 @@ async fn non_interactive_rocket_init() { // attempts to enter the original (temp) working directory again. // If both are dropped at the same time, the test can sometimes crash. // Added sleep here to prevent. - drop(shuttle); tokio::time::sleep(tokio::time::Duration::from_millis(500)).await; drop(temp_dir); } @@ -244,7 +242,7 @@ async fn non_interactive_git_init() { "tower/hello-world", temp_dir_path.to_str().unwrap(), ]); - let shuttle = Shuttle::new().unwrap().run(args).await.unwrap(); + Shuttle::new().unwrap().run(args).await.unwrap(); let cargo_toml = read_to_string(temp_dir_path.join("Cargo.toml")).unwrap(); assert!(cargo_toml.contains("name = \"my-project\"")); @@ -254,7 +252,6 @@ async fn non_interactive_git_init() { // attempts to enter the original (temp) working directory again. // If both are dropped at the same time, the test can sometimes crash. // Added sleep here to prevent. - drop(shuttle); tokio::time::sleep(tokio::time::Duration::from_millis(500)).await; drop(temp_dir); }