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
This commit is contained in:
parent
f71bb74951
commit
4e40730120
|
@ -102,6 +102,8 @@ fn rpc_server_spawn_unallocated_port(parallel_cpu_threads: bool) {
|
||||||
let port = zebra_test::net::random_unallocated_port();
|
let port = zebra_test::net::random_unallocated_port();
|
||||||
let config = Config {
|
let config = Config {
|
||||||
listen_addr: Some(SocketAddrV4::new(Ipv4Addr::LOCALHOST, port).into()),
|
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 },
|
parallel_cpu_threads: if parallel_cpu_threads { 0 } else { 1 },
|
||||||
debug_force_finished_sync: false,
|
debug_force_finished_sync: false,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue