cleanup some build warnings (#1661)

This commit is contained in:
Antioch Peverell
2018-10-05 09:17:57 +01:00
committed by GitHub
parent bcf41438dc
commit 48f9ec61f4
4 changed files with 5 additions and 11 deletions
+2 -3
View File
@@ -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;
+1 -2
View File
@@ -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;
+2 -5
View File
@@ -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
-1
View File
@@ -47,7 +47,6 @@ mod siphash;
mod types;
use chrono::prelude::{DateTime, NaiveDateTime, Utc};
use consensus;
use core::{Block, BlockHeader};
use genesis;
use global;