From b8b0494c191d10dc89fdee7eb0c33b4763d9e49e Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 20 Apr 2017 00:14:29 +0100 Subject: [PATCH] Fix a stupid copy/paste syntax error. --- src/data_forms.rs | 2 +- src/disco.rs | 2 +- src/jingle.rs | 2 +- src/media_element.rs | 2 +- src/ping.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/data_forms.rs b/src/data_forms.rs index 68e0e00d43e9163bfb62394f7c67851e63ada81f..342c0c453d4b06e0fb2b899ede67731eef5139a5 100644 --- a/src/data_forms.rs +++ b/src/data_forms.rs @@ -53,7 +53,7 @@ pub struct DataForm { pub fn parse_data_form(root: &Element) -> Result { if !root.is("x", DATA_FORMS_NS) { - return Err(Error::ParseError("This is not a data form element.")), + return Err(Error::ParseError("This is not a data form element.")); } let type_: DataFormType = match root.attr("type") { diff --git a/src/disco.rs b/src/disco.rs index d51636e2c09be6c75117ef15ee1739154411701a..3100d4b5db27b45b02764b8c4d8f64fcfc564836 100644 --- a/src/disco.rs +++ b/src/disco.rs @@ -30,7 +30,7 @@ pub struct Disco { pub fn parse_disco(root: &Element) -> Result { if !root.is("query", DISCO_INFO_NS) { - return Err(Error::ParseError("This is not a disco#info element.")), + return Err(Error::ParseError("This is not a disco#info element.")); } let mut identities: Vec = vec!(); diff --git a/src/jingle.rs b/src/jingle.rs index 00b390e4409cf2574bd86863fd990409bf59474f..a2fc331d80f0fff86ff835d53f9e18fdf77849e6 100644 --- a/src/jingle.rs +++ b/src/jingle.rs @@ -210,7 +210,7 @@ pub struct Jingle { pub fn parse_jingle(root: &Element) -> Result { if !root.is("jingle", JINGLE_NS) { - return Err(Error::ParseError("This is not a Jingle element.")), + return Err(Error::ParseError("This is not a Jingle element.")); } let mut contents: Vec = vec!(); diff --git a/src/media_element.rs b/src/media_element.rs index d912f126f80200445d6f42135052b2b5a8cfb702..7d77400883b38866d911d99518309bee5ea3acb3 100644 --- a/src/media_element.rs +++ b/src/media_element.rs @@ -19,7 +19,7 @@ pub struct MediaElement { pub fn parse_media_element(root: &Element) -> Result { if !root.is("media", MEDIA_ELEMENT_NS) { - return Err(Error::ParseError("This is not a media element.")), + return Err(Error::ParseError("This is not a media element.")); } let width = root.attr("width").and_then(|width| width.parse().ok()); diff --git a/src/ping.rs b/src/ping.rs index 39145e2253ee0f9255e733e656041e34b8a77271..de7aeb7b5f96ce369f9a67bafbc64ae1e054bae2 100644 --- a/src/ping.rs +++ b/src/ping.rs @@ -10,7 +10,7 @@ pub struct Ping { pub fn parse_ping(root: &Element) -> Result { if !root.is("ping", PING_NS) { - return Err(Error::ParseError("This is not a ping element.")), + return Err(Error::ParseError("This is not a ping element.")); } for _ in root.children() {