From 609ab656c8826d604737d898177a2cacf3376c1f Mon Sep 17 00:00:00 2001 From: "Evgeniy A. Dushistov" Date: Tue, 25 Jul 2017 21:41:24 +0300 Subject: [PATCH] fix rust-lang/cargo#4323 --- Cargo.toml | 2 +- src/parse.rs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index aaafc59..bd74cc4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nmea" -version = "0.0.6" +version = "0.0.7-beta" authors = ["Felix Obenhuber ", "Evgeniy A. Dushistov "] description = "Simple NMEA 0183 parser" documentation = "https://docs.rs/nmea/" diff --git a/src/parse.rs b/src/parse.rs index 64ddcad..490ebdf 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -98,7 +98,7 @@ pub fn parse_nmea_sentence(sentence: &[u8]) -> std::result::Result "Incomplete nmea sentence".to_string(), - IError::Error(e) => e.description().to_string(), + IError::Error(e) => e.to_string(), })?; Ok(res) } @@ -207,7 +207,7 @@ pub fn parse_gsv(sentence: &NmeaSentence) -> Result { .to_full_result() .map_err(|err| match err { IError::Incomplete(_) => "Incomplete nmea sentence".to_string(), - IError::Error(e) => e.description().into(), + IError::Error(e) => e.to_string(), })?; res.gnss_type = gnss_type.clone(); for sat in res.sats_info.iter_mut() { @@ -423,7 +423,7 @@ pub fn parse_gga(sentence: &NmeaSentence) -> Result { .to_full_result() .map_err(|err| match err { IError::Incomplete(_) => "Incomplete nmea sentence".to_string(), - IError::Error(e) => e.description().into(), + IError::Error(e) => e.to_string(), })?; Ok(res) } @@ -572,7 +572,7 @@ pub fn parse_rmc(sentence: &NmeaSentence) -> Result { .to_full_result() .map_err(|err| match err { IError::Incomplete(_) => "Incomplete nmea sentence".to_string(), - IError::Error(e) => e.description().into(), + IError::Error(e) => e.to_string(), }) } @@ -751,7 +751,7 @@ fn parse_gsa(s: &NmeaSentence) -> Result { .to_full_result() .map_err(|err| match err { IError::Incomplete(_) => "Incomplete nmea sentence".to_string(), - IError::Error(e) => e.description().into(), + IError::Error(e) => e.to_string(), })?; Ok(ret) } @@ -910,7 +910,7 @@ fn parse_vtg(s: &NmeaSentence) -> Result { .to_full_result() .map_err(|err| match err { IError::Incomplete(_) => "Incomplete nmea sentence".to_string(), - IError::Error(e) => e.description().into(), + IError::Error(e) => e.to_string(), })?; Ok(ret) }