diff --git a/src/lib.rs b/src/lib.rs index 665eedf..8fd0738 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -39,10 +39,13 @@ impl Settings { let line = line.unwrap(); let mut parts = line.split(":"); let user = parts.by_ref().next().unwrap(); - creds.push((user.to_string(), (&parts.collect::>()[..].join(":")).to_string())); + creds.push(( + (&parts.collect::>()[..].join(":")).to_string(), + user.to_string(), + )); } } - Settings{ + Settings { user_credentials: creds, ..Default::default() }