diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2018-12-16 12:28:13 +0100 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2018-12-16 12:28:13 +0100 |
commit | d1a5e9f9547d804fb329dc41c5f5e0ce287e2215 (patch) | |
tree | 54db34900e703de8c5621d52184bc5baa48538ce /src/tests/pws.rs | |
parent | 2eccc96ceec2282b868891befe9cda7f941fbe7b (diff) | |
download | nitrokey-rs-d1a5e9f9547d804fb329dc41c5f5e0ce287e2215.tar.gz nitrokey-rs-d1a5e9f9547d804fb329dc41c5f5e0ce287e2215.tar.bz2 |
Fix formatting according to Rust style guide
Diffstat (limited to 'src/tests/pws.rs')
-rw-r--r-- | src/tests/pws.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/tests/pws.rs b/src/tests/pws.rs index f581515..adb3f93 100644 --- a/src/tests/pws.rs +++ b/src/tests/pws.rs @@ -12,11 +12,9 @@ fn get_pws(device: &Target) -> PasswordSafe { #[cfg_attr(not(any(feature = "test-pro", feature = "test-storage")), ignore)] fn enable() { let device = Target::connect().unwrap(); - assert!( - device - .get_password_safe(&(USER_PASSWORD.to_owned() + "123")) - .is_err() - ); + assert!(device + .get_password_safe(&(USER_PASSWORD.to_owned() + "123")) + .is_err()); assert!(device.get_password_safe(USER_PASSWORD).is_ok()); assert!(device.get_password_safe(ADMIN_PASSWORD).is_err()); assert!(device.get_password_safe(USER_PASSWORD).is_ok()); |