Remove imports and cleanups (#3590)

* Remove unused import and if else chain
This commit is contained in:
Quentin Le Sceller
2021-03-08 11:09:41 -05:00
committed by GitHub
parent 45f74c396d
commit 725622da7a
22 changed files with 17 additions and 48 deletions
+2 -3
View File
@@ -21,7 +21,6 @@ use crate::core::{core, ser};
use crate::p2p;
use crate::util::secp::pedersen;
use crate::util::{self, ToHex};
use serde;
use serde::de::MapAccess;
use serde::ser::SerializeStruct;
use std::fmt;
@@ -30,7 +29,7 @@ macro_rules! no_dup {
($field:ident) => {
if $field.is_some() {
return Err(serde::de::Error::duplicate_field("$field"));
}
}
};
}
@@ -644,7 +643,7 @@ impl BlockPrintable {
.map(|output| {
OutputPrintable::from_output(
output,
chain.clone(),
chain,
Some(&block.header),
include_proof,
include_merkle_proof,