chore: clippy warnings

This commit is contained in:
rvcas
2022-12-15 22:05:49 -05:00
committed by Lucas
parent ac14512706
commit b3266fb837
12 changed files with 24 additions and 30 deletions

View File

@@ -82,7 +82,7 @@ where
pub fn to_hex(&self) -> Result<String, en::Error> {
let bytes = self.to_cbor()?;
let hex = hex::encode(&bytes);
let hex = hex::encode(bytes);
Ok(hex)
}

View File

@@ -124,7 +124,7 @@ peg::parser! {
= "(" _* "error" _* ")" { Term::Error }
rule constant_integer() -> Constant
= "integer" _+ i:big_number() { Constant::Integer(i as i128) }
= "integer" _+ i:big_number() { Constant::Integer(i) }
rule constant_bytestring() -> Constant
= "bytestring" _+ bs:bytestring() { Constant::ByteString(bs) }