File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
derive_builder_test/tests Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ impl<'a> ToTokens for Setter<'a> {
129
129
tokens. append ( quote ! (
130
130
#( #attrs) *
131
131
#vis fn #try_ident #try_ty_params ( #self_param, value: VALUE )
132
- -> #result<#return_ty, VALUE :: Err >
132
+ -> #result<#return_ty, VALUE :: Error >
133
133
{
134
134
let converted : #ty = value. try_into( ) ?;
135
135
let mut new = #self_into_return_ty;
@@ -269,7 +269,7 @@ mod tests {
269
269
270
270
#[ some_attr]
271
271
pub fn try_foo<VALUE : :: std:: convert:: TryInto <Foo >>( & mut self , value: VALUE )
272
- -> :: std:: result:: Result <& mut Self , VALUE :: Err > {
272
+ -> :: std:: result:: Result <& mut Self , VALUE :: Error > {
273
273
let converted : Foo = value. try_into( ) ?;
274
274
let mut new = self ;
275
275
new. foo = :: std:: option:: Option :: Some ( converted) ;
@@ -330,7 +330,7 @@ mod tests {
330
330
}
331
331
332
332
pub fn try_foo<VALUE : :: std:: convert:: TryInto <Foo >>( & mut self , value: VALUE )
333
- -> :: std:: result:: Result <& mut Self , VALUE :: Err > {
333
+ -> :: std:: result:: Result <& mut Self , VALUE :: Error > {
334
334
let converted : Foo = value. try_into( ) ?;
335
335
let mut new = self ;
336
336
new. foo = :: std:: option:: Option :: Some ( converted) ;
Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ mod struct_level {
24
24
25
25
#[ cfg( feature = "nightlytests" ) ]
26
26
impl < ' a > TryFrom < & ' a str > for MyAddr {
27
- type Err = AddrParseError ;
27
+ type Error = AddrParseError ;
28
28
29
- fn try_from ( v : & str ) -> Result < Self , Self :: Err > {
29
+ fn try_from ( v : & str ) -> Result < Self , Self :: Error > {
30
30
Ok ( MyAddr ( v. parse ( ) ?) )
31
31
}
32
32
}
You can’t perform that action at this time.
0 commit comments