Cleanup build warnings (#1391)
* cleanup some unused vars etc. * rustfmt
This commit is contained in:
+2
-4
@@ -25,9 +25,7 @@ use lmdb;
|
||||
use core::core::hash::{Hash, Hashed};
|
||||
use core::core::merkle_proof::MerkleProof;
|
||||
use core::core::target::Difficulty;
|
||||
use core::core::{
|
||||
Block, BlockHeader, Output, OutputFeatures, OutputIdentifier, Transaction, TxKernel,
|
||||
};
|
||||
use core::core::{Block, BlockHeader, Output, OutputIdentifier, Transaction, TxKernel};
|
||||
use core::global;
|
||||
use error::{Error, ErrorKind};
|
||||
use grin_store::Error::NotFoundErr;
|
||||
@@ -396,7 +394,7 @@ impl Chain {
|
||||
let res = txhashset.is_unspent(output_ref);
|
||||
match res {
|
||||
Err(e) => Err(e),
|
||||
Ok((h, p)) => Ok(h),
|
||||
Ok((h, _)) => Ok(h),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-3
@@ -20,7 +20,7 @@ use std::sync::Arc;
|
||||
|
||||
use conn::{Message, MessageHandler, Response};
|
||||
use core::core;
|
||||
use core::core::hash::{Hash, Hashed};
|
||||
use core::core::hash::Hash;
|
||||
use msg::{
|
||||
BanReason, GetPeerAddrs, Headers, Locator, PeerAddrs, Ping, Pong, SockAddr, TxHashSetArchive,
|
||||
TxHashSetRequest, Type,
|
||||
@@ -120,7 +120,6 @@ impl MessageHandler for Protocol {
|
||||
"handle_payload: received block: msg_len: {}", msg.header.msg_len
|
||||
);
|
||||
let b: core::Block = msg.body()?;
|
||||
let bh = b.hash();
|
||||
|
||||
adapter.block_received(b, self.addr);
|
||||
Ok(None)
|
||||
@@ -161,7 +160,6 @@ impl MessageHandler for Protocol {
|
||||
"handle_payload: received compact block: msg_len: {}", msg.header.msg_len
|
||||
);
|
||||
let b: core::CompactBlock = msg.body()?;
|
||||
let bh = b.hash();
|
||||
|
||||
adapter.compact_block_received(b, self.addr);
|
||||
Ok(None)
|
||||
|
||||
Reference in New Issue
Block a user