Updated examples because of new for_each_incoming return type.
This commit is contained in:
parent
b95ed76088
commit
b4893377a6
3 changed files with 4 additions and 4 deletions
|
@ -32,7 +32,7 @@ fn main() {
|
|||
server.identify().unwrap();
|
||||
server.for_each_incoming(|message| {
|
||||
// Do message processing.
|
||||
})
|
||||
}).unwrap()
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -55,7 +55,7 @@ fn main() {
|
|||
server.identify().unwrap();
|
||||
server.for_each_incoming(|message| {
|
||||
// Do message processing.
|
||||
})
|
||||
}).unwrap()
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -25,5 +25,5 @@ fn main() {
|
|||
}
|
||||
_ => (),
|
||||
}
|
||||
})
|
||||
}).unwrap()
|
||||
}
|
||||
|
|
|
@ -25,5 +25,5 @@ fn main() {
|
|||
}
|
||||
_ => (),
|
||||
}
|
||||
})
|
||||
}).unwrap()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue