From 52b494bc2e5f3a7f97468734d0f3f1873cbabe64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren?= Date: Tue, 28 Mar 2023 13:31:26 -0600 Subject: [PATCH] Fix web-client compilation --- consensus/src/messages/handlers.rs | 4 ++-- consensus/src/sync/syncer_proxy.rs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/consensus/src/messages/handlers.rs b/consensus/src/messages/handlers.rs index 95134ee215..bca4ca6a50 100644 --- a/consensus/src/messages/handlers.rs +++ b/consensus/src/messages/handlers.rs @@ -1,5 +1,6 @@ +use std::cmp; #[cfg(feature = "full")] -use std::{cmp, sync::Arc}; +use std::sync::Arc; #[cfg(feature = "full")] use parking_lot::RwLock; @@ -12,7 +13,6 @@ use nimiq_blockchain::{Blockchain, CHUNK_SIZE}; use nimiq_blockchain_interface::{AbstractBlockchain, Direction}; use nimiq_blockchain_proxy::BlockchainProxy; use nimiq_network_interface::{network::Network, request::Handle}; -#[cfg(feature = "full")] use nimiq_primitives::policy::Policy; use crate::messages::*; diff --git a/consensus/src/sync/syncer_proxy.rs b/consensus/src/sync/syncer_proxy.rs index 747270b593..20b6e59e91 100644 --- a/consensus/src/sync/syncer_proxy.rs +++ b/consensus/src/sync/syncer_proxy.rs @@ -1,5 +1,6 @@ +#[cfg(feature = "full")] +use std::cmp::max; use std::{ - cmp::max, pin::Pin, sync::Arc, task::{Context, Poll},