From 092b9606ff2b721d858a5c7b2b27a2f9942b4bc4 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 16 Jul 2025 10:10:41 +0100 Subject: chore: nix flake update required running: `cargo fix --allow-dirty --allow-staged` `cargo clippy --fix --allow-dirty -- -D warnings` to fix problems and then manually fixing some too --- tests/ngit_login.rs | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'tests/ngit_login.rs') diff --git a/tests/ngit_login.rs b/tests/ngit_login.rs index b1e2676..09e40f1 100644 --- a/tests/ngit_login.rs +++ b/tests/ngit_login.rs @@ -110,9 +110,7 @@ mod with_relays { p.expect("failed to extract account name from account metadata...\r\n")?; - p.expect_end_with( - format!("logged in as {}\r\n", TEST_KEY_1_NPUB).as_str(), - )?; + p.expect_end_with(format!("logged in as {TEST_KEY_1_NPUB}\r\n").as_str())?; for p in [51, 52] { shutdown_relay(8000 + p)?; } @@ -572,7 +570,7 @@ mod with_offline_flag { p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; - p.expect_end_with(format!("logged in as {}\r\n", TEST_KEY_1_NPUB).as_str()) + p.expect_end_with(format!("logged in as {TEST_KEY_1_NPUB}\r\n").as_str()) } #[test] @@ -587,7 +585,7 @@ mod with_offline_flag { p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; - p.expect_end_with(format!("logged in as {}\r\n", TEST_KEY_1_NPUB).as_str()) + p.expect_end_with(format!("logged in as {TEST_KEY_1_NPUB}\r\n").as_str()) } mod when_invalid_nsec { @@ -621,7 +619,7 @@ mod with_offline_flag { p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; - p.expect_end_with(format!("logged in as {}\r\n", TEST_KEY_1_NPUB).as_str()) + p.expect_end_with(format!("logged in as {TEST_KEY_1_NPUB}\r\n").as_str()) } } } @@ -643,7 +641,7 @@ mod with_offline_flag { p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; p.expect_end_with( - format!("logged in as {} via cli arguments\r\n", TEST_KEY_1_NPUB).as_str(), + format!("logged in as {TEST_KEY_1_NPUB} via cli arguments\r\n").as_str(), ) } @@ -682,7 +680,7 @@ mod with_offline_flag { p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; p.expect_end_with( - format!("logged in as {} via cli arguments\r\n", TEST_KEY_1_NPUB).as_str(), + format!("logged in as {TEST_KEY_1_NPUB} via cli arguments\r\n").as_str(), ) } @@ -701,7 +699,7 @@ mod with_offline_flag { p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; p.expect_end_with( - format!("logged in as {} via cli arguments\r\n", TEST_KEY_1_NPUB).as_str(), + format!("logged in as {TEST_KEY_1_NPUB} via cli arguments\r\n").as_str(), ) } @@ -724,7 +722,7 @@ mod with_offline_flag { p.expect("saved login details to local git config. you are only logged in to this local repository.\r\n")?; p.expect_end_with( - format!("logged in as {} via cli arguments\r\n", TEST_KEY_2_NPUB).as_str(), + format!("logged in as {TEST_KEY_2_NPUB} via cli arguments\r\n").as_str(), ) } } -- cgit v1.2.3