From 4a9dcc66ac7be69031a19f6ece0be4642e1f3057 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 17 Oct 2025 15:22:05 +0100 Subject: chore: nix flake update update nix dependancies including hardcoded nightly.rustfmt applied autofixes --- test_utils/src/git.rs | 2 +- test_utils/src/lib.rs | 22 +++++++++++----------- test_utils/src/relay.rs | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) (limited to 'test_utils/src') diff --git a/test_utils/src/git.rs b/test_utils/src/git.rs index 5942a54..ab21f38 100644 --- a/test_utils/src/git.rs +++ b/test_utils/src/git.rs @@ -216,7 +216,7 @@ impl GitTestRepo { Ok(oid) } - pub fn create_branch(&self, branch_name: &str) -> Result { + pub fn create_branch(&'_ self, branch_name: &str) -> Result> { self.git_repo .branch(branch_name, &self.git_repo.head()?.peel_to_commit()?, false) .context("could not create branch") diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs index 8d81efe..22bdf90 100644 --- a/test_utils/src/lib.rs +++ b/test_utils/src/lib.rs @@ -225,7 +225,7 @@ pub struct CliTester { } impl CliTester { - pub fn expect_input(&mut self, prompt: &str) -> Result { + pub fn expect_input(&'_ mut self, prompt: &str) -> Result> { let mut i = CliTesterInputPrompt { tester: self, prompt: prompt.to_string(), @@ -234,7 +234,7 @@ impl CliTester { Ok(i) } - pub fn expect_input_eventually(&mut self, prompt: &str) -> Result { + pub fn expect_input_eventually(&'_ mut self, prompt: &str) -> Result> { let mut i = CliTesterInputPrompt { tester: self, prompt: prompt.to_string(), @@ -243,7 +243,7 @@ impl CliTester { Ok(i) } - pub fn expect_password(&mut self, prompt: &str) -> Result { + pub fn expect_password(&'_ mut self, prompt: &str) -> Result> { let mut i = CliTesterPasswordPrompt { tester: self, prompt: prompt.to_string(), @@ -254,10 +254,10 @@ impl CliTester { } pub fn expect_confirm( - &mut self, + &'_ mut self, prompt: &str, default: Option, - ) -> Result { + ) -> Result> { let mut i = CliTesterConfirmPrompt { tester: self, prompt: prompt.to_string(), @@ -268,10 +268,10 @@ impl CliTester { } pub fn expect_confirm_eventually( - &mut self, + &'_ mut self, prompt: &str, default: Option, - ) -> Result { + ) -> Result> { let mut i = CliTesterConfirmPrompt { tester: self, prompt: prompt.to_string(), @@ -282,10 +282,10 @@ impl CliTester { } pub fn expect_choice( - &mut self, + &'_ mut self, prompt: &str, choices: Vec, - ) -> Result { + ) -> Result> { let mut i = CliTesterChoicePrompt { tester: self, prompt: prompt.to_string(), @@ -296,10 +296,10 @@ impl CliTester { } pub fn expect_multi_select( - &mut self, + &'_ mut self, prompt: &str, choices: Vec, - ) -> Result { + ) -> Result> { let mut i = CliTesterMultiSelectPrompt { tester: self, prompt: prompt.to_string(), diff --git a/test_utils/src/relay.rs b/test_utils/src/relay.rs index 8a982a4..313e824 100644 --- a/test_utils/src/relay.rs +++ b/test_utils/src/relay.rs @@ -168,7 +168,7 @@ impl<'a> Relay<'a> { self.respond_standard_req( client_id, &subscription_id, - &[filter.clone()], + std::slice::from_ref(&filter), )?; // self.respond_eose(client_id, subscription_id)?; } -- cgit v1.2.3