chore: clippy warnings
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user