Two serde quirks from switching dependencies

This commit is contained in:
Steven Roose 2019-04-12 19:06:06 +01:00
parent e0205fc9fa
commit d4282353c9
No known key found for this signature in database
GPG Key ID: 2F2A88D7F8D68E87
2 changed files with 2 additions and 2 deletions

View File

@ -187,7 +187,7 @@ mod tests {
assert_eq!(script_find_and_remove(&mut v, &[105, 105, 5]), 0);
assert_eq!(script_find_and_remove(&mut v, &[105]), 0);
assert_eq!(script_find_and_remove(&mut v, &[103]), 1);
assert_eq!(v, vec![]);
assert_eq!(v, Vec::<u8>::new());
assert_eq!(script_find_and_remove(&mut v, &[105, 105, 5]), 0);
assert_eq!(script_find_and_remove(&mut v, &[105]), 0);

View File

@ -116,7 +116,7 @@ impl<D: Decoder> Decodable<D> for PartiallySignedTransaction {
return Err(Error::InvalidMagic.into());
}
if 0xff_u8 != Decodable::consensus_decode(d)? {
if 0xff_u8 != u8::consensus_decode(d)? {
return Err(Error::InvalidSeparator.into());
}