@@ -488,7 +488,7 @@ impl Generator for FieldOrderedGenerator<'_> {
488488 } ;
489489 statements. push ( parse_quote ! {
490490 match field_iter. peek( ) {
491- Some ( ( field_name, typ) ) => {
491+ :: std :: option :: Option :: Some ( ( field_name, typ) ) => {
492492 if #name_check_expression {
493493 // Advance the iterator.
494494 :: std:: iter:: Iterator :: next( & mut field_iter) ;
@@ -515,7 +515,7 @@ impl Generator for FieldOrderedGenerator<'_> {
515515 }
516516 // Else simply ignore the field.
517517 }
518- None => {
518+ :: std :: option :: Option :: None => {
519519 if !#field_can_be_ignored {
520520 return :: std:: result:: Result :: Err ( mk_typck_err(
521521 #crate_path:: UdtTypeCheckErrorKind :: ValueMissingForUdtField {
@@ -532,7 +532,7 @@ impl Generator for FieldOrderedGenerator<'_> {
532532 if self . ctx . attributes . forbid_excess_udt_fields {
533533 // Check whether there are some fields remaining
534534 statements. push ( parse_quote ! {
535- if let Some ( ( field_name, typ) ) = :: std:: iter:: Iterator :: next( & mut field_iter) {
535+ if let :: std :: option :: Option :: Some ( ( field_name, typ) ) = :: std:: iter:: Iterator :: next( & mut field_iter) {
536536 return :: std:: result:: Result :: Err ( mk_typck_err(
537537 #crate_path:: UdtTypeCheckErrorKind :: NoSuchFieldInUdt {
538538 field_name: <_ as :: std:: clone:: Clone >:: clone( field_name) . into_owned( ) ,
0 commit comments