@@ -61,7 +61,7 @@ impl ImageManager {
6161 . docker
6262 . inspect_image ( name)
6363 . await
64- . with_context ( || format ! ( "inspecting image {}" , name ) ) ?;
64+ . with_context ( || format ! ( "inspecting image {name}" ) ) ?;
6565
6666 match img. id {
6767 Some ( id) => Ok ( ImageRef { id } ) ,
@@ -230,18 +230,18 @@ impl FileBuilder {
230230
231231 match & self . source {
232232 FileSource :: Local { .. } => {
233- write ! ( & mut line, " files/{}" , local_path ) ?;
233+ write ! ( & mut line, " files/{local_path}" ) ?;
234234 }
235235 FileSource :: Image {
236236 name : image_name,
237237 path,
238238 } => {
239239 let src_path = path. must_to_str ( ) ?;
240- write ! ( & mut line, " --from={} {}" , image_name , src_path ) ?;
240+ write ! ( & mut line, " --from={image_name } {src_path}" ) ?;
241241 }
242242 }
243243
244- writeln ! ( & mut line, " {}" , dst_path ) ?;
244+ writeln ! ( & mut line, " {dst_path}" ) ?;
245245
246246 Ok ( line)
247247 }
@@ -324,7 +324,7 @@ impl LayerBuilder {
324324 if let Some ( entrypoint) = & self . entrypoint {
325325 let ep_array_str = serde_json:: to_string ( entrypoint) ?;
326326 trace ! ( "writing ENTRYPOINT: {}" , ep_array_str) ;
327- dw. write_all ( format ! ( "ENTRYPOINT {}\n " , ep_array_str ) . as_bytes ( ) )
327+ dw. write_all ( format ! ( "ENTRYPOINT {ep_array_str }\n " ) . as_bytes ( ) )
328328 . await ?;
329329 }
330330
0 commit comments