From 0cc4371d138d5e98cd22813f10689cb089eef378 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Mon, 24 Aug 2020 18:04:20 -0700 Subject: Introduce builder-inspired way for configuring Nitrocli instance In the future we would like to provide more ways for tests to create a Nitrocli instance. In order to prevent explosion of with_XXX methods for each possible combination of arguments, this change allows for an easier configuration of an existing object with builder-pattern-inspired modifier methods. --- src/tests/unencrypted.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tests/unencrypted.rs') diff --git a/src/tests/unencrypted.rs b/src/tests/unencrypted.rs index 26c6604..89049de 100644 --- a/src/tests/unencrypted.rs +++ b/src/tests/unencrypted.rs @@ -7,7 +7,7 @@ use super::*; #[test_device(storage)] fn unencrypted_set_read_write(model: nitrokey::Model) -> anyhow::Result<()> { - let mut ncli = Nitrocli::with_model(model); + let mut ncli = Nitrocli::new().model(model); let out = ncli.handle(&["unencrypted", "set", "read-write"])?; assert!(out.is_empty()); -- cgit v1.2.3