Cargo Update (#426)

* Cargo update

* Fix easyjsonrpc import

* Cargo update

* Fix compiler warning
This commit is contained in:
Quentin Le Sceller
2020-06-10 12:31:04 -04:00
committed by GitHub
parent fe2880949d
commit 0e817fd1c0
13 changed files with 372 additions and 399 deletions
+18 -4
View File
@@ -205,7 +205,10 @@ pub fn txs(
None => "None".to_owned(),
};
let kernel_excess = match t.kernel_excess {
Some(e) => e.0.as_ref().to_hex(),
Some(e) => {
let excess: &[u8] = e.0.as_ref();
excess.to_hex()
}
None => "None".to_owned(),
};
let payment_proof = match t.payment_proof {
@@ -473,7 +476,11 @@ pub fn payment_proof(tx: &TxLogEntry) -> Result<(), Error> {
t.fg(term::color::WHITE).unwrap();
writeln!(t).unwrap();
let receiver_signature = match pp.receiver_signature {
Some(s) => s.to_bytes().as_ref().to_hex(),
Some(s) => {
let sig_bytes = s.to_bytes();
let sig_ref: &[u8] = sig_bytes.as_ref();
sig_ref.to_hex()
}
None => "None".to_owned(),
};
let fee = match tx.fee {
@@ -490,11 +497,18 @@ pub fn payment_proof(tx: &TxLogEntry) -> Result<(), Error> {
};
let sender_signature = match pp.sender_signature {
Some(s) => s.to_bytes().as_ref().to_hex(),
Some(s) => {
let sig_bytes = s.to_bytes();
let sig_ref: &[u8] = sig_bytes.as_ref();
sig_ref.to_hex()
}
None => "None".to_owned(),
};
let kernel_excess = match tx.kernel_excess {
Some(e) => e.0.as_ref().to_hex(),
Some(e) => {
let excess: &[u8] = e.0.as_ref();
excess.to_hex()
}
None => "None".to_owned(),
};