Skip to content

Commit

Permalink
cleanup some build warnings (mimblewimble#1661)
Browse files Browse the repository at this point in the history
  • Loading branch information
antiochp authored Oct 5, 2018
1 parent bcf4143 commit 48f9ec6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
5 changes: 2 additions & 3 deletions core/src/pow/cuckatoo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@
// limitations under the License.

//! Implementation of Cuckatoo Cycle designed by John Tromp.
use pow::num::ToPrimitive;
use std::mem;

use byteorder::{BigEndian, LittleEndian, WriteBytesExt};
use byteorder::{BigEndian, WriteBytesExt};
use croaring::Bitmap;

use pow::common::{self, CuckooParams, EdgeType, Link};
use pow::common::{CuckooParams, EdgeType, Link};
use pow::error::{Error, ErrorKind};
use pow::{PoWContext, Proof};
use util;
Expand Down
3 changes: 1 addition & 2 deletions core/src/pow/cuckoo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
//! simple miner is included, mostly for testing purposes. John Tromp's Tomato
//! miner will be much faster in almost every environment.
use pow::common::{self, CuckooParams, Edge, EdgeType};
use pow::common::{CuckooParams, Edge, EdgeType};
use pow::error::{Error, ErrorKind};
use pow::num::ToPrimitive;
use pow::{PoWContext, Proof};

use std::cmp;
Expand Down
7 changes: 2 additions & 5 deletions core/src/pow/lean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@

//! Lean miner for Cuckatoo Cycle
use std::time::{Duration, Instant};

use croaring::Bitmap;

use pow::common::CuckooParams;
use pow::cuckatoo::CuckatooContext;
use pow::error::{Error, ErrorKind};
use pow::siphash::siphash24;
use pow::{PoWContext, Proof};
use pow::error::Error;
use pow::Proof;

/// Lean miner implementation aiming to be as short and simple as possible.
/// As a consequence, it's a little less than 10 times slower than John
Expand Down
1 change: 0 additions & 1 deletion core/src/pow/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ mod siphash;
mod types;

use chrono::prelude::{DateTime, NaiveDateTime, Utc};
use consensus;
use core::{Block, BlockHeader};
use genesis;
use global;
Expand Down

0 comments on commit 48f9ec6

Please sign in to comment.