mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
Cleanup build warnings (#1391)
* cleanup some unused vars etc. * rustfmt
This commit is contained in:
parent
bb7bc2c4f2
commit
7ca4d45bf5
2 changed files with 3 additions and 7 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue