remove unused pieces from PingPong (#134)

Adds some extra tests as well, to be sure.
This commit is contained in:
Sean McArthur
2017-10-05 19:16:14 -07:00
committed by GitHub
parent 2e3dcf602c
commit 720fb20bbf
5 changed files with 106 additions and 29 deletions

View File

@@ -13,10 +13,10 @@ pub struct Ping {
impl Ping {
#[cfg(feature = "unstable")]
pub fn new() -> Ping {
pub fn new(payload: Payload) -> Ping {
Ping {
ack: false,
payload: Payload::default(),
payload,
}
}