@@ -326,7 +326,7 @@ pub fn Editor<'a>(
326326 }
327327 OutputItem :: Audio ( bytes, label) => {
328328 let encoded = STANDARD . encode ( bytes) ;
329- let src = format ! ( "data:audio/wav;base64,{}" , encoded ) ;
329+ let src = format ! ( "data:audio/wav;base64,{encoded}" ) ;
330330 let label = label. map ( |s| format ! ( "{s}:" ) ) ;
331331 if allow_autoplay {
332332 view ! {
@@ -463,7 +463,7 @@ pub fn Editor<'a>(
463463 if code. starts_with ( "# Experimental!\n " ) || code == "# Experimental!" {
464464 return ;
465465 }
466- let new_code = format ! ( "# Experimental!\n {}" , code ) ;
466+ let new_code = format ! ( "# Experimental!\n {code}" ) ;
467467 let cursor = if let Some ( ( start, end) ) = get_code_cursor ( ) {
468468 Cursor :: Set ( start + 16 , end + 16 )
469469 } else {
@@ -668,7 +668,7 @@ pub fn Editor<'a>(
668668 if i == 0 || start_line == 1 && i == end_line {
669669 Some ( line. into ( ) )
670670 } else {
671- Some ( format ! ( "\n {}" , line ) )
671+ Some ( format ! ( "\n {line}" ) )
672672 }
673673 } else {
674674 None
@@ -1105,7 +1105,7 @@ pub fn Editor<'a>(
11051105 . or_else ( || prim. ascii ( ) . map ( |s| s. to_string ( ) ) ) ?;
11061106 let mut title = prim. name ( ) . to_string ( ) ;
11071107 if let Some ( ascii) = prim. ascii ( ) {
1108- title = format ! ( "({}) {}" , ascii , title ) ;
1108+ title = format ! ( "({ascii }) {title}" ) ;
11091109 }
11101110 // Navigate to the docs page on ctrl/shift+click
11111111 let onclick = move |event : MouseEvent | {
@@ -1396,7 +1396,7 @@ pub fn Editor<'a>(
13961396 false => "normal-editor" ,
13971397 } ;
13981398
1399- format ! ( "editor {} {}" , editor_size , editor_layout )
1399+ format ! ( "editor {editor_size } {editor_layout}" )
14001400 } ;
14011401
14021402 // Hide the example arrows if there is only one example
@@ -2260,7 +2260,7 @@ pub fn Prim(
22602260 let href = format ! ( "/docs/{}" , prim. name( ) ) ;
22612261 let mut title = String :: new ( ) ;
22622262 if let Some ( ascii) = prim. ascii ( ) {
2263- title. push_str ( & format ! ( "({})" , ascii ) ) ;
2263+ title. push_str ( & format ! ( "({ascii })" ) ) ;
22642264 }
22652265 if prim. glyph ( ) . is_some ( ) && glyph_only {
22662266 if !title. is_empty ( ) {
0 commit comments