From 338c6f4df759ca5e11ec2f03358b65fe5eb2a147 Mon Sep 17 00:00:00 2001 From: Ryan Fredlund Date: Wed, 18 May 2016 19:07:54 -0500 Subject: [PATCH] Renamed to new_user --- src/main.rs | 2 +- src/user.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 95df559..07c295a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,7 +21,7 @@ fn main() { let root = Path::new(&root_arg); let name_arg = env::args().nth(5).unwrap_or("USER".to_string()); - match proton_cli::user_new(project, root, name_arg) { + match proton_cli::new_user(project, root, name_arg) { Ok(_) => println!("Worked!"), Err(e) => println!("{:?}", e.to_string()), } diff --git a/src/user.rs b/src/user.rs index b49da45..62dfbb4 100644 --- a/src/user.rs +++ b/src/user.rs @@ -8,7 +8,7 @@ use project_types::Project; use Error; -pub fn user_new>(project: String, public: P, name: String) -> Result<(), Error> { +pub fn new_user>(project: String, public: P, name: String) -> Result<(), Error> { // Get public key from file let pub_key = try!(file_as_string(public));