aboutsummaryrefslogtreecommitdiff
path: root/lockchain-core/src/users
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-04-22 02:17:36 +0200
committerKatharina Fey <kookie@spacekookie.de>2019-04-22 02:17:36 +0200
commit16522d90a7ad626bb36d57fbc24076bb01ce8616 (patch)
treea3b3a5bb6a5b1826ebe4807e40df1be45ff9b292 /lockchain-core/src/users
parentf12fae4479c5b97ab37823d7aa58d9156e2fc3ad (diff)
Running rustfmt
Diffstat (limited to 'lockchain-core/src/users')
-rw-r--r--lockchain-core/src/users/auth.rs2
-rw-r--r--lockchain-core/src/users/rights.rs2
-rw-r--r--lockchain-core/src/users/secrets.rs2
-rw-r--r--lockchain-core/src/users/tokens.rs2
-rw-r--r--lockchain-core/src/users/user.rs4
-rw-r--r--lockchain-core/src/users/userstore.rs4
6 files changed, 8 insertions, 8 deletions
diff --git a/lockchain-core/src/users/auth.rs b/lockchain-core/src/users/auth.rs
index ffedb49..8b18de6 100644
--- a/lockchain-core/src/users/auth.rs
+++ b/lockchain-core/src/users/auth.rs
@@ -24,4 +24,4 @@ pub fn pam_authenticate(username: &str, password: &str) -> Result<(), AuthError>
// pub fn yubikey_authenticate(username: &str, yubi_id: &str) -> Result<(), AuthError> {
// unimplemented!()
-// } \ No newline at end of file
+// }
diff --git a/lockchain-core/src/users/rights.rs b/lockchain-core/src/users/rights.rs
index 635df3c..4d4a7a7 100644
--- a/lockchain-core/src/users/rights.rs
+++ b/lockchain-core/src/users/rights.rs
@@ -1,7 +1,7 @@
//! Permission and access system for lockchain
use crate::traits::AutoEncoder;
-use serde::{Serialize, Deserialize};
+use serde::{Deserialize, Serialize};
/// Specifies access to a resource
#[derive(Hash, Serialize, Deserialize, Clone, PartialEq, Eq)]
diff --git a/lockchain-core/src/users/secrets.rs b/lockchain-core/src/users/secrets.rs
index 6c22293..64f887d 100644
--- a/lockchain-core/src/users/secrets.rs
+++ b/lockchain-core/src/users/secrets.rs
@@ -1,7 +1,7 @@
//! A secrets type module that wraps around some user content with metadata
use crate::traits::AutoEncoder;
-use serde::{Serialize, Deserialize};
+use serde::{Deserialize, Serialize};
/// Specifies the type of secret that's used to derive a vault user secret
#[derive(Serialize, Deserialize)]
diff --git a/lockchain-core/src/users/tokens.rs b/lockchain-core/src/users/tokens.rs
index 3f29af1..c5b3655 100644
--- a/lockchain-core/src/users/tokens.rs
+++ b/lockchain-core/src/users/tokens.rs
@@ -1,5 +1,5 @@
use crate::crypto::{Key, KeyType};
-use serde::{Serialize, Deserialize};
+use serde::{Deserialize, Serialize};
use std::borrow::Cow;
/// An authentication token that can be compared in constant time
diff --git a/lockchain-core/src/users/user.rs b/lockchain-core/src/users/user.rs
index beaba1a..9538708 100644
--- a/lockchain-core/src/users/user.rs
+++ b/lockchain-core/src/users/user.rs
@@ -2,9 +2,9 @@
use super::rights::{Access, Role};
use crate::crypto::{encoding, hashing, random};
-use std::collections::HashMap;
use crate::traits::AutoEncoder;
-use serde::{Serialize, Deserialize};
+use serde::{Deserialize, Serialize};
+use std::collections::HashMap;
/// A generic user representation
///
diff --git a/lockchain-core/src/users/userstore.rs b/lockchain-core/src/users/userstore.rs
index 10a2858..ae76900 100644
--- a/lockchain-core/src/users/userstore.rs
+++ b/lockchain-core/src/users/userstore.rs
@@ -1,9 +1,9 @@
//! Merging `KeyStore` and `Userstore` into the same concept
use super::rights::Access;
-use std::collections::HashMap;
use crate::traits::AutoEncoder;
-use serde::{Serialize, Deserialize};
+use serde::{Deserialize, Serialize};
+use std::collections::HashMap;
/// A thin user UserStore
///