swap user/cred
This commit is contained in:
parent
521b3d79fc
commit
42a5a92e4b
@ -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::<Vec<_>>()[..].join(":")).to_string()));
|
||||
creds.push((
|
||||
(&parts.collect::<Vec<_>>()[..].join(":")).to_string(),
|
||||
user.to_string(),
|
||||
));
|
||||
}
|
||||
}
|
||||
Settings{
|
||||
Settings {
|
||||
user_credentials: creds,
|
||||
..Default::default()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user