@@ -128,7 +128,7 @@ impl Rtc<RtcClkLse> {
128128 w. rtcen ( ) . set_bit ( ) ;
129129 // Set the source of the RTC to LSE
130130 w. rtcsel ( ) . lse ( )
131- } )
131+ } ) ;
132132 }
133133}
134134
@@ -202,7 +202,7 @@ impl Rtc<RtcClkLsi> {
202202 w. rtcen ( ) . set_bit ( ) ;
203203 // Set the source of the RTC to LSI
204204 w. rtcsel ( ) . lsi ( )
205- } )
205+ } ) ;
206206 }
207207}
208208
@@ -280,7 +280,7 @@ impl Rtc<RtcClkHseDiv128> {
280280 w. rtcen ( ) . set_bit ( ) ;
281281 // Set the source of the RTC to HSE/128
282282 w. rtcsel ( ) . hse ( )
283- } )
283+ } ) ;
284284 }
285285}
286286
@@ -365,22 +365,30 @@ impl<CS> Rtc<CS> {
365365
366366 /// Enables triggering the RTC interrupt every time the RTC counter is increased
367367 pub fn listen_seconds ( & mut self ) {
368- self . perform_write ( |s| s. regs . crh ( ) . modify ( |_, w| w. secie ( ) . set_bit ( ) ) )
368+ self . perform_write ( |s| {
369+ s. regs . crh ( ) . modify ( |_, w| w. secie ( ) . set_bit ( ) ) ;
370+ } )
369371 }
370372
371373 /// Disables the RTC second interrupt
372374 pub fn unlisten_seconds ( & mut self ) {
373- self . perform_write ( |s| s. regs . crh ( ) . modify ( |_, w| w. secie ( ) . clear_bit ( ) ) )
375+ self . perform_write ( |s| {
376+ s. regs . crh ( ) . modify ( |_, w| w. secie ( ) . clear_bit ( ) ) ;
377+ } )
374378 }
375379
376380 /// Clears the RTC second interrupt flag
377381 pub fn clear_second_flag ( & mut self ) {
378- self . perform_write ( |s| s. regs . crl ( ) . modify ( |_, w| w. secf ( ) . clear_bit ( ) ) )
382+ self . perform_write ( |s| {
383+ s. regs . crl ( ) . modify ( |_, w| w. secf ( ) . clear_bit ( ) ) ;
384+ } )
379385 }
380386
381387 /// Clears the RTC alarm interrupt flag
382388 pub fn clear_alarm_flag ( & mut self ) {
383- self . perform_write ( |s| s. regs . crl ( ) . modify ( |_, w| w. alrf ( ) . clear_bit ( ) ) )
389+ self . perform_write ( |s| {
390+ s. regs . crl ( ) . modify ( |_, w| w. alrf ( ) . clear_bit ( ) ) ;
391+ } )
384392 }
385393
386394 /**
0 commit comments