Two serde quirks from switching dependencies
This commit is contained in:
parent
e0205fc9fa
commit
d4282353c9
|
@ -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, 105, 5]), 0);
|
||||||
assert_eq!(script_find_and_remove(&mut v, &[105]), 0);
|
assert_eq!(script_find_and_remove(&mut v, &[105]), 0);
|
||||||
assert_eq!(script_find_and_remove(&mut v, &[103]), 1);
|
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, 105, 5]), 0);
|
||||||
assert_eq!(script_find_and_remove(&mut v, &[105]), 0);
|
assert_eq!(script_find_and_remove(&mut v, &[105]), 0);
|
||||||
|
|
|
@ -116,7 +116,7 @@ impl<D: Decoder> Decodable<D> for PartiallySignedTransaction {
|
||||||
return Err(Error::InvalidMagic.into());
|
return Err(Error::InvalidMagic.into());
|
||||||
}
|
}
|
||||||
|
|
||||||
if 0xff_u8 != Decodable::consensus_decode(d)? {
|
if 0xff_u8 != u8::consensus_decode(d)? {
|
||||||
return Err(Error::InvalidSeparator.into());
|
return Err(Error::InvalidSeparator.into());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue