fix service flags warning
This commit is contained in:
parent
3c1117305f
commit
62fb1ec7e6
|
@ -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
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in New Issue