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

@ -236,7 +236,6 @@ generate_element!(
#[cfg(test)]
mod tests {
use super::*;
use std::error::Error as StdError;
#[test]
fn test_simple() {
@ -397,7 +396,7 @@ mod tests {
Error::ParseIntError(error) => error,
_ => panic!(),
};
assert_eq!(error.description(), "invalid digit found in string");
assert_eq!(error.to_string(), "invalid digit found in string");
}
#[test]