From 4e40730120161da7a057b01266b703166ef13c1b Mon Sep 17 00:00:00 2001 From: teor Date: Tue, 4 Oct 2022 09:43:33 +1000 Subject: [PATCH] fix(clippy): Allow a clippy::bool_to_int_with_if (#5300) * Allow a clippy::bool_to_int_with_if * Also allow unknown lints * Fix typo --- zebra-rpc/src/server/tests/vectors.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zebra-rpc/src/server/tests/vectors.rs b/zebra-rpc/src/server/tests/vectors.rs index 23747361e..c96193df0 100644 --- a/zebra-rpc/src/server/tests/vectors.rs +++ b/zebra-rpc/src/server/tests/vectors.rs @@ -102,6 +102,8 @@ fn rpc_server_spawn_unallocated_port(parallel_cpu_threads: bool) { let port = zebra_test::net::random_unallocated_port(); let config = Config { listen_addr: Some(SocketAddrV4::new(Ipv4Addr::LOCALHOST, port).into()), + #[allow(unknown_lints)] + #[allow(clippy::bool_to_int_with_if)] parallel_cpu_threads: if parallel_cpu_threads { 0 } else { 1 }, debug_force_finished_sync: false, };