Skip to content

Commit b2be629

Browse files
committed
fix build
1 parent 95bbc9c commit b2be629

File tree

13 files changed

+13
-35
lines changed

13 files changed

+13
-35
lines changed

src/chain-wallet-libs/bindings/wallet-wasm-js/src/certificates/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ pub mod vote_cast;
55
pub mod vote_plan;
66

77
#[wasm_bindgen]
8+
#[allow(dead_code)]
89
pub struct Certificate(pub(crate) CertificateLib);
910

1011
#[wasm_bindgen]

src/chain-wallet-libs/bindings/wallet-wasm-js/src/fragment.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use wasm_bindgen::prelude::*;
55

66
/// Identifier of a block fragment
77
#[wasm_bindgen]
8+
#[allow(dead_code)]
89
pub struct FragmentId(pub(crate) wallet_core::FragmentId);
910

1011
/// this is used only for giving the Array a type in the typescript generated notation

src/jormungandr/jormungandr/src/blockchain/chain.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,6 @@ pub struct StreamReporter<R> {
909909
}
910910

911911
pub struct StreamInfo {
912-
pub start: std::time::SystemTime,
913912
pub last_reported: std::time::SystemTime,
914913
pub last_bytes_received: u64,
915914
pub bytes_received: u64,
@@ -925,7 +924,6 @@ impl<R: Fn(&StreamInfo)> StreamReporter<R> {
925924
let lbd: Option<HeaderDesc> = None;
926925
StreamReporter {
927926
stream_info: StreamInfo {
928-
start: now,
929927
last_reported: now,
930928
last_bytes_received: 0,
931929
bytes_received: 0,

src/jormungandr/jormungandr/src/fragment/pool.rs

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::{
1212
utils::async_msg::MessageBox,
1313
};
1414
use chain_core::{packer::Codec, property::Serialize};
15-
use chain_impl_mockchain::{block::BlockDate, fragment::Contents, transaction::Transaction};
15+
use chain_impl_mockchain::{fragment::Contents, transaction::Transaction};
1616
use futures::{channel::mpsc::SendError, sink::SinkExt};
1717
use jormungandr_lib::{
1818
interfaces::{
@@ -312,7 +312,6 @@ fn is_transaction_valid<E>(tx: &Transaction<E>) -> bool {
312312
pub(super) mod internal {
313313
use super::*;
314314
use std::{
315-
cmp::Ordering,
316315
collections::HashMap,
317316
hash::{Hash, Hasher},
318317
ptr,
@@ -431,27 +430,6 @@ pub(super) mod internal {
431430
}
432431
}
433432

434-
#[derive(Clone, PartialEq, Eq)]
435-
struct TimeoutQueueItem {
436-
valid_until: BlockDate,
437-
id: FragmentId,
438-
}
439-
440-
impl Ord for TimeoutQueueItem {
441-
fn cmp(&self, other: &Self) -> Ordering {
442-
let res = self.valid_until.cmp(&other.valid_until);
443-
if res != Ordering::Equal {
444-
return res;
445-
}
446-
self.id.cmp(&other.id)
447-
}
448-
}
449-
450-
impl PartialOrd for TimeoutQueueItem {
451-
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
452-
Some(self.cmp(other))
453-
}
454-
}
455433

456434
pub struct Pool {
457435
entries: IndexedQueue<FragmentId, Fragment>,

src/jormungandr/jormungandr/src/secure/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ pub struct GenesisPraos {
2626
}
2727

2828
#[derive(Clone, Deserialize)]
29+
#[allow(dead_code)]
2930
pub struct OwnerKey(Identifier<Ed25519>);
3031

3132
/// Node Secret(s)

src/vit-testing/mainnet-tools/src/cardano_cli/wrapper/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ mod error;
44
pub mod utils;
55

66
pub use cli::Api;
7-
pub use data::CardanoKeyTemplate;
87
pub use error::Error;

src/vit-testing/vitup/src/builders/helpers/vote_plan.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use chain_impl_mockchain::testing::scenario::template::ProposalDefBuilder;
44
use chain_impl_mockchain::testing::TestGen;
55
use hersir::builder::VotePlanKey;
66
use hersir::config::{CommitteeTemplate, PrivateParameters, VotePlanTemplate};
7-
pub use jormungandr_lib::interfaces::Initial;
87
use jormungandr_lib::interfaces::{BlockDate, TokenIdentifier};
98
use std::iter;
109

src/vit-testing/vitup/src/cli/generate/data/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ mod random;
44

55
use crate::Result;
66
pub use external::ExternalDataCommandArgs;
7-
pub use jormungandr_lib::interfaces::Initial;
87
pub use perf::PerfDataCommandArgs;
98
pub use random::{
109
AllRandomDataCommandArgs, RandomReviewsDataCommandArgs, RandomScoresDataCommandArgs,

src/vit-testing/vitup/src/cli/start/quick.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use crate::builders::utils::logger;
2-
pub use crate::builders::{VitBackendSettingsBuilder, FOLLOWER, LEADER_1, LEADER_2, LEADER_3};
32
use crate::config::read_voter_hirs;
43
use crate::config::ConfigBuilder;
54
use crate::config::{

src/vit-testing/vitup/src/config/builder.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
pub use crate::builders::ReviewGenerator;
2-
pub use crate::builders::{
3-
convert_to_blockchain_date, convert_to_human_date, generate_qr_and_hashes,
4-
VitVotePlanDefBuilder, WalletExtension,
5-
};
1+
pub use crate::builders::convert_to_human_date;
62
use crate::config::Block0Initials;
73
use crate::config::{date_format, Initials};
84
use crate::config::{Config, VoteTime};

0 commit comments

Comments
 (0)