style: remove unused fn
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
#[macro_use] extern crate rust_util;
|
#[macro_use] extern crate rust_util;
|
||||||
|
|
||||||
pub mod util;
|
mod util;
|
||||||
pub mod tx;
|
mod tx;
|
||||||
pub mod credit;
|
mod credit;
|
||||||
pub mod engine;
|
mod engine;
|
||||||
pub mod engine_plugin_credit;
|
mod engine_plugin_credit;
|
||||||
|
|
||||||
mod cmd;
|
mod cmd;
|
||||||
mod cmd_default;
|
mod cmd_default;
|
||||||
|
|||||||
@@ -37,11 +37,7 @@ impl Transaction {
|
|||||||
signature: format!("{}", sign),
|
signature: format!("{}", sign),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn from_json(transaction_json: &str) -> XResult<Self> {
|
|
||||||
serde_json::from_str(transaction_json).map_err(|e| e.into())
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn parse_body(&self) -> XResult<TransactionBody> {
|
pub fn parse_body(&self) -> XResult<TransactionBody> {
|
||||||
serde_json::from_str(&self.body).map_err(|e| e.into())
|
serde_json::from_str(&self.body).map_err(|e| e.into())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user