parsers: cleanup warnings about errors and unused stuff

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-01-21 23:46:00 +01:00
commit fbb0edd93b
8 changed files with 21 additions and 35 deletions

View file

@ -90,7 +90,6 @@ mod tests {
use super::*;
use crate::Element;
use std::convert::TryFrom;
use std::error::Error as StdError;
#[cfg(target_pointer_width = "32")]
#[test]
@ -165,7 +164,7 @@ mod tests {
Error::ParseIntError(error) => error,
_ => panic!(),
};
assert_eq!(message.description(), "invalid digit found in string");
assert_eq!(message.to_string(), "invalid digit found in string");
}
#[test]