File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
drv/stm32h7-spi-server-core Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1354,7 +1354,7 @@ impl ConfigGenerator {
13541354 }
13551355
13561356 if byrail. insert ( rail, ( d, index) ) . is_some ( ) {
1357- bail ! ( "duplicate rail {}" , rail ) ;
1357+ bail ! ( "duplicate rail {rail}" ) ;
13581358 }
13591359 }
13601360 }
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ impl TaskIds {
249249 . map ( |name| {
250250 let name = name. as_ref ( ) ;
251251 self . get ( name)
252- . ok_or_else ( || anyhow ! ( "unknown task `{}`" , name ) )
252+ . ok_or_else ( || anyhow ! ( "unknown task `{name }`" ) )
253253 } )
254254 . collect ( )
255255 }
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ fn generate_spi_config(
5959 global_config : & str ,
6060) -> Result < ( ) > {
6161 let config = config. get ( global_config) . ok_or_else ( || {
62- anyhow ! ( "reference to undefined spi config {}" , global_config )
62+ anyhow ! ( "reference to undefined spi config {global_config}" )
6363 } ) ?;
6464
6565 let out_dir = build_util:: out_dir ( ) ;
@@ -113,7 +113,7 @@ fn check_spi_config(
113113 // We only want to look at the subset of global configuration relevant to
114114 // this task, so that error reporting is more focused.
115115 let config = config. get ( global_config) . ok_or_else ( || {
116- anyhow ! ( "reference to undefined spi config {}" , global_config )
116+ anyhow ! ( "reference to undefined spi config {global_config}" )
117117 } ) ?;
118118
119119 if config. controller < 1 || config. controller > 6 {
You can’t perform that action at this time.
0 commit comments