Commit 89e4c40 1 parent bd99729 commit 89e4c40 Copy full SHA for 89e4c40
File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ impl DeriveEnum {
162
162
// if we have fixed value variants
163
163
result. ident_str ( "variant" ) ;
164
164
result. puncts ( "=>" ) ;
165
- result. ident_str ( " Err") ;
165
+ result. push_parsed ( "core::result::Result:: Err") ? ;
166
166
result. group ( Delimiter :: Parenthesis , |err_inner| {
167
167
err_inner. push_parsed ( format ! (
168
168
"{}::error::DecodeError::UnexpectedVariant" ,
Original file line number Diff line number Diff line change @@ -408,6 +408,10 @@ mod derive_with_polluted_scope {
408
408
#[ allow( non_snake_case) ]
409
409
fn Ok ( ) { }
410
410
411
+ #[ allow( dead_code) ]
412
+ #[ allow( non_snake_case) ]
413
+ fn Err ( ) { }
414
+
411
415
#[ derive( bincode:: Encode , bincode:: Decode ) ]
412
416
struct A {
413
417
a : u32 ,
You can’t perform that action at this time.
0 commit comments