Skip to content

Commit

Permalink
Use new TryFrom, see rust-lang/rust#40281
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilgardis committed Mar 25, 2017
1 parent 594f74f commit f129cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atm/src/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub struct Transaction {
}

impl ::std::convert::TryFrom<Transaction> for TransactionE {
type Err = error::Error;
type Error = error::Error;
fn try_from(ts: Transaction) -> error::Result<TransactionE> {
let ty = ts.trans_type;
use self::TransactionType::*;
Expand Down

0 comments on commit f129cdc

Please sign in to comment.