Skip to content

Commit

Permalink
Fix the location of clippy::bool_to_int_with_if (#5350)
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 authored Oct 6, 2022
1 parent 7207f9d commit 6507230
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zebra-rpc/src/server/tests/vectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ fn rpc_server_spawn_unallocated_port(parallel_cpu_threads: bool) {
let _init_guard = zebra_test::init();

let port = zebra_test::net::random_unallocated_port();
#[allow(unknown_lints)]
#[allow(clippy::bool_to_int_with_if)]
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,
};
Expand Down

0 comments on commit 6507230

Please sign in to comment.