swap user/cred
This commit is contained in:
parent
521b3d79fc
commit
42a5a92e4b
@ -39,7 +39,10 @@ impl Settings {
|
|||||||
let line = line.unwrap();
|
let line = line.unwrap();
|
||||||
let mut parts = line.split(":");
|
let mut parts = line.split(":");
|
||||||
let user = parts.by_ref().next().unwrap();
|
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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user