src/ping.rs 🔗
@@ -5,8 +5,7 @@ use error::Error;
use ns;
#[derive(Debug, Clone)]
-pub struct Ping {
-}
+pub struct Ping;
pub fn parse_ping(root: &Element) -> Result<Ping, Error> {
if !root.is("ping", ns::PING) {
Emmanuel Gil Peyrot created
src/ping.rs | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
@@ -5,8 +5,7 @@ use error::Error;
use ns;
#[derive(Debug, Clone)]
-pub struct Ping {
-}
+pub struct Ping;
pub fn parse_ping(root: &Element) -> Result<Ping, Error> {
if !root.is("ping", ns::PING) {