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
|
|
@ -75,7 +75,6 @@ mod tests {
|
|||
use crate::util::error::Error;
|
||||
use crate::Element;
|
||||
use std::convert::TryFrom;
|
||||
use std::error::Error as StdError;
|
||||
|
||||
#[cfg(target_pointer_width = "32")]
|
||||
#[test]
|
||||
|
|
@ -146,7 +145,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");
|
||||
|
||||
let elem: Element = "<open xmlns='http://jabber.org/protocol/ibb' block-size='128'/>"
|
||||
.parse()
|
||||
|
|
|
|||
Loading…
Reference in a new issue