File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ fn main() -> ! {
1616
1717 usart1
1818 . tdr
19- . write ( |w| unsafe { w. tdr ( ) . bits ( u16:: from ( * byte) ) } ) ;
19+ . write ( |w| w. tdr ( ) . bits ( u16:: from ( * byte) ) ) ;
2020 }
2121 let elapsed = instant. elapsed ( ) ; // in ticks
2222
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ fn main() -> ! {
1212 for byte in b"The quick brown fox jumps over the lazy dog." . iter ( ) {
1313 usart1
1414 . tdr
15- . write ( |w| unsafe { w. tdr ( ) . bits ( u16:: from ( * byte) ) } ) ;
15+ . write ( |w| w. tdr ( ) . bits ( u16:: from ( * byte) ) ) ;
1616 }
1717
1818 loop { }
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ fn main() -> ! {
2525 while usart1. isr . read ( ) . txe ( ) . bit_is_clear ( ) { }
2626 usart1
2727 . tdr
28- . write ( |w| unsafe { w. tdr ( ) . bits ( u16:: from ( * byte) ) } ) ;
28+ . write ( |w| w. tdr ( ) . bits ( u16:: from ( * byte) ) ) ;
2929 }
3030
3131 break ;
@@ -38,7 +38,7 @@ fn main() -> ! {
3838 while usart1. isr . read ( ) . txe ( ) . bit_is_clear ( ) { }
3939 usart1
4040 . tdr
41- . write ( |w| unsafe { w. tdr ( ) . bits ( u16:: from ( * byte) ) } ) ;
41+ . write ( |w| w. tdr ( ) . bits ( u16:: from ( * byte) ) ) ;
4242 }
4343
4444 break ;
You can’t perform that action at this time.
0 commit comments