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 --- test_utils/src/lib.rs | 10 +++++----- test_utils/src/relay.rs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'test_utils') diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs index 5feb64b..1312610 100644 --- a/test_utils/src/lib.rs +++ b/test_utils/src/lib.rs @@ -167,7 +167,7 @@ pub fn generate_repo_ref_event_with_git_server_with_keys( .tags([ Tag::identifier( // root_commit.to_string() - format!("{}-consider-it-random", root_commit), + format!("{root_commit}-consider-it-random"), ), Tag::from_standardized(TagStandard::Reference(root_commit.to_string())), Tag::from_standardized(TagStandard::Name("example name".into())), @@ -1235,10 +1235,10 @@ pub fn create_and_populate_branch( test_repo.checkout("main")?; test_repo.create_branch(branch_name)?; test_repo.checkout(branch_name)?; - let file_name = format!("{}3.md", prefix); + let file_name = format!("{prefix}3.md"); std::fs::write(test_repo.dir.join(&file_name), "some content")?; test_repo.stage_and_commit_custom_signature( - &format!("add {}3.md", prefix), + &format!("add {prefix}3.md"), Some( &Signature::new( "Joe Bloggs", @@ -1250,10 +1250,10 @@ pub fn create_and_populate_branch( commiter, )?; if !only_one_commit { - let file_name = format!("{}4.md", prefix); + let file_name = format!("{prefix}4.md"); std::fs::write(test_repo.dir.join(&file_name), "some content")?; test_repo.stage_and_commit_custom_signature( - &format!("add {}4.md", prefix), + &format!("add {prefix}4.md"), Some( &Signature::new( "Joe Bloggs", diff --git a/test_utils/src/relay.rs b/test_utils/src/relay.rs index e820651..14778d9 100644 --- a/test_utils/src/relay.rs +++ b/test_utils/src/relay.rs @@ -186,7 +186,7 @@ impl<'a> Relay<'a> { pub fn shutdown_relay(port: u64) -> Result<()> { let mut counter = 0; - while let Ok((mut socket, _)) = tungstenite::connect(format!("ws://localhost:{}", port)) { + while let Ok((mut socket, _)) = tungstenite::connect(format!("ws://localhost:{port}")) { counter += 1; if counter == 1 { socket.write(tungstenite::Message::text("shut me down"))?; -- cgit v1.2.3