Merge pull request #538 from sanket1729/fix_warning

Fix service flags warning
This commit is contained in:
Andrew Poelstra 2021-01-11 19:26:08 +00:00 committed by GitHub
commit f1664db374
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -312,9 +312,10 @@ mod test {
#[test]
fn debug_format_test() {
let mut flags = ServiceFlags::NETWORK;
assert_eq!(
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],
port: 8333
}),