Refactor account data

[?]
Oct 28, 2018, 2:29 PM
Z7OFWSBLMTVZKR4ERUMZDKBMB7UXJAAXPPMJ4MJKSJR5WRO644UQC

Dependencies

  • [2] AXDOLAOA Introduce xmpp client
  • [3] F5UQL2FB Manage xmpp connection in cmd processing loop
  • [4] PHPCAQ6Z Use env logger. Implement command loop
  • [5] AVBHYHOA Stop xmpp thread by shudown
  • [*] FVVPKFTL Initial commit

Change contents

  • edit in src/xmpp.rs at line 5
    [2.25]
    [3.0]
    use config;
  • replacement in src/xmpp.rs at line 9
    [3.29][3.29:68](),[3.29][3.29:68]()
    jid: String,
    password: String,
    [3.29]
    [2.26]
    account: config::Account,
  • replacement in src/xmpp.rs at line 14
    [3.116][3.116:174](),[3.116][3.116:174]()
    fn new(jid: &str, password: &str) -> XmppConnection {
    [3.116]
    [3.174]
    fn new(account: config::Account) -> XmppConnection {
  • replacement in src/xmpp.rs at line 16
    [3.199][3.199:275](),[3.199][3.199:275]()
    jid: jid.to_owned(),
    password: password.to_owned(),
    [3.199]
    [3.275]
    account,
  • replacement in src/xmpp.rs at line 24
    [3.445][2.54:159]()
    let XmppConnection {
    jid,
    password,
    inner,
    } = self;
    [3.445]
    [2.159]
    let XmppConnection { account, inner } = self;
  • replacement in src/xmpp.rs at line 26
    [2.205][2.205:268]()
    let mut res_client = Client::new(&jid, &password);
    [2.205]
    [2.268]
    let mut res_client = Client::new(&account.jid, &account.password);
  • replacement in src/xmpp.rs at line 29
    [2.370][2.370:429]()
    res_client = Client::new(&jid, &password);
    [2.370]
    [2.429]
    res_client = Client::new(&account.jid, &account.password);
  • replacement in src/xmpp.rs at line 37
    [3.536][2.585:624]()
    jid,
    password,
    [3.536]
    [3.600]
    account,
  • replacement in src/xmpp.rs at line 64
    [3.440][3.900:935]()
    jid: &str,
    password: &str,
    [3.440]
    [3.440]
    account: config::Account,
  • replacement in src/xmpp.rs at line 72
    [3.627][3.936:987]()
    let conn = XmppConnection::new(jid, password);
    [3.627]
    [3.987]
    let conn = XmppConnection::new(account);
  • replacement in src/main.rs at line 90
    [3.3729][3.3729:3800]()
    &config.account.jid,
    &config.account.password,
    [3.3729]
    [3.3800]
    config.account,