Skip to content

Commit f129cdc

Browse files
committed
Use new TryFrom, see rust-lang/rust#40281
1 parent 594f74f commit f129cdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atm/src/transaction/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ pub struct Transaction {
105105
}
106106

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

0 commit comments

Comments
 (0)