Explorar o código

tweak: use 2018 rust syntax instead of 2022 for formatting

Jonathan Kelley %!s(int64=3) %!d(string=hai) anos
pai
achega
fa020c53e4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/desktop/src/lib.rs

+ 1 - 1
packages/desktop/src/lib.rs

@@ -248,7 +248,7 @@ pub fn launch_with_props<P: 'static + Send>(
 
                             // do not let path searching to go two layers beyond the caller level
                             let data = read(path_buf)?;
-                            let meta = format!("{mime}");
+                            let meta = format!("{}", mime);
 
                             wry::http::ResponseBuilder::new().mimetype(&meta).body(data)
                         }