From 3004a859d652049bc721960103efe574b567f2e2 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Fri, 11 Sep 2020 18:47:52 +0200 Subject: fixup! List all matching devices in status commmand cargo fmt --- src/tests/status.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/tests/status.rs b/src/tests/status.rs index 1f5bbf7..58d06ec 100644 --- a/src/tests/status.rs +++ b/src/tests/status.rs @@ -72,7 +72,10 @@ fn output_multiple(_model: nitrokey::Model) -> anyhow::Result<()> { for (idx, device) in devices.iter().enumerate() { assert!(out.contains(&format!("Device #{}:\n", idx)), out); if let Some(model) = device.model { - assert!(out.contains(&format!("model: {}\n", model)), out); + assert!( + out.contains(&format!("model: {}\n", model)), + out + ); } if let Some(sn) = device.serial_number { assert!(out.contains(&format!("serial number: {}\n", sn)), out); -- cgit v1.2.3