parsers: cleanup warnings about errors and unused stuff
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
c224133382
commit
fbb0edd93b
8 changed files with 21 additions and 35 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue