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/lib.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'test_utils/src/lib.rs') 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(), -- cgit v1.2.3