Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Dushistov committed Jul 25, 2017
1 parent 53a6a03 commit 609ab65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nmea"
version = "0.0.6"
version = "0.0.7-beta"
authors = ["Felix Obenhuber <felix@obenhuber.de>", "Evgeniy A. Dushistov <dushistov@mail.ru>"]
description = "Simple NMEA 0183 parser"
documentation = "https://docs.rs/nmea/"
Expand Down
12 changes: 6 additions & 6 deletions src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub fn parse_nmea_sentence(sentence: &[u8]) -> std::result::Result<NmeaSentence,
.to_full_result()
.map_err(|err| match err {
IError::Incomplete(_) => "Incomplete nmea sentence".to_string(),
IError::Error(e) => e.description().to_string(),
IError::Error(e) => e.to_string(),
})?;
Ok(res)
}
Expand Down Expand Up @@ -207,7 +207,7 @@ pub fn parse_gsv(sentence: &NmeaSentence) -> Result<GsvData, String> {
.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() {
Expand Down Expand Up @@ -423,7 +423,7 @@ pub fn parse_gga(sentence: &NmeaSentence) -> Result<GgaData, String> {
.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)
}
Expand Down Expand Up @@ -572,7 +572,7 @@ pub fn parse_rmc(sentence: &NmeaSentence) -> Result<RmcData, String> {
.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(),
})
}

Expand Down Expand Up @@ -751,7 +751,7 @@ fn parse_gsa(s: &NmeaSentence) -> Result<GsaData, String> {
.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)
}
Expand Down Expand Up @@ -910,7 +910,7 @@ fn parse_vtg(s: &NmeaSentence) -> Result<VtgData, String> {
.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)
}
Expand Down

0 comments on commit 609ab65

Please sign in to comment.