fix service flags warning

This commit is contained in:
sanket1729 2020-12-23 09:59:42 -06:00
parent 3c1117305f
commit 62fb1ec7e6
1 changed files with 2 additions and 1 deletions

View File

@ -312,9 +312,10 @@ mod test {
#[test] #[test]
fn debug_format_test() { fn debug_format_test() {
let mut flags = ServiceFlags::NETWORK;
assert_eq!( assert_eq!(
format!("The address is: {:?}", Address { format!("The address is: {:?}", Address {
services: ServiceFlags::NETWORK.add(ServiceFlags::WITNESS), services: flags.add(ServiceFlags::WITNESS),
address: [0, 0, 0, 0, 0, 0xffff, 0x0a00, 0x0001], address: [0, 0, 0, 0, 0, 0xffff, 0x0a00, 0x0001],
port: 8333 port: 8333
}), }),