@@ -549,7 +549,7 @@ impl RegistersContaining {
549549 let tmp_rc: OneOrMore < Option < RegisterContaining > > = self
550550 . 0
551551 . map ( |rc| rc. substitute_macro_parameters ( param_values, on_missing, macros) ) ;
552- if tmp_rc. iter ( ) . all ( |maybe_rc| maybe_rc . is_some ( ) ) {
552+ if tmp_rc. iter ( ) . all ( Option :: is_some) {
553553 Some ( RegistersContaining ( tmp_rc. into_map ( |maybe_rc| {
554554 maybe_rc. expect ( "we already checked this wasn't None" )
555555 } ) ) )
@@ -1389,9 +1389,9 @@ impl CommaDelimitedFragment {
13891389 ) -> Self {
13901390 let span: Span = {
13911391 let spans: [ Option < Span > ; 3 ] = [
1392- leading_commas. as_ref ( ) . map ( |c| c . span ( ) ) ,
1392+ leading_commas. as_ref ( ) . map ( Spanned :: span) ,
13931393 Some ( instruction. span ) ,
1394- trailing_commas. as_ref ( ) . map ( |c| c . span ( ) ) ,
1394+ trailing_commas. as_ref ( ) . map ( Spanned :: span) ,
13951395 ] ;
13961396 match spans {
13971397 [ _, None , _] => {
@@ -1496,7 +1496,7 @@ impl UntaggedProgramInstruction {
14961496 let tmp_frags: OneOrMore < Option < CommaDelimitedFragment > > = self
14971497 . fragments
14981498 . map ( |frag| frag. substitute_macro_parameters ( param_values, on_missing, macros) ) ;
1499- if tmp_frags. iter ( ) . any ( |frag| frag . is_none ( ) ) {
1499+ if tmp_frags. iter ( ) . any ( Option :: is_none) {
15001500 None
15011501 } else {
15021502 Some ( UntaggedProgramInstruction {
@@ -1830,7 +1830,9 @@ impl InstructionSequence {
18301830 }
18311831
18321832 pub( crate ) fn emitted_word_count( & self ) -> Unsigned18Bit {
1833- self. iter ( ) . map ( |st| st. emitted_word_count ( ) ) . sum ( )
1833+ self. iter ( )
1834+ . map ( TaggedProgramInstruction :: emitted_word_count)
1835+ . sum ( )
18341836 }
18351837
18361838 #[ allow( clippy:: too_many_arguments) ]
0 commit comments