tokio-xmpp: remove redundant pin from examples
This commit is contained in:
parent
10f1b3663c
commit
366f2c8349
1 changed files with 1 additions and 2 deletions
|
|
@ -31,13 +31,12 @@ async fn main() {
|
|||
// Client instance
|
||||
let mut client = Client::new(jid, password);
|
||||
|
||||
let token = client
|
||||
let mut token = client
|
||||
.send_iq(
|
||||
Some(target),
|
||||
IqRequest::Get(DiscoInfoQuery { node: None }.into()),
|
||||
)
|
||||
.await;
|
||||
tokio::pin!(token);
|
||||
|
||||
// Main loop, processes events
|
||||
loop {
|
||||
|
|
|
|||
Loading…
Reference in a new issue