From f129cdc4cee2d70a8996006ea9c0ea1bfbc1513b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20Gardstr=C3=B6m?= Date: Sat, 25 Mar 2017 16:39:41 +0100 Subject: [PATCH] Use new `TryFrom`, see rust-lang/rust#40281 --- atm/src/transaction/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atm/src/transaction/mod.rs b/atm/src/transaction/mod.rs index 74e1452..2b7d05f 100644 --- a/atm/src/transaction/mod.rs +++ b/atm/src/transaction/mod.rs @@ -105,7 +105,7 @@ pub struct Transaction { } impl ::std::convert::TryFrom for TransactionE { - type Err = error::Error; + type Error = error::Error; fn try_from(ts: Transaction) -> error::Result { let ty = ts.trans_type; use self::TransactionType::*;