Explorar el Código

Update yarte to 0.9, number render with itoa and dtoa (#5729)

Juan Aguilar hace 5 años
padre
commit
83d47f5aed
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      frameworks/Rust/actix/Cargo.toml
  2. 1 1
      frameworks/Rust/actix/src/utils.rs

+ 1 - 1
frameworks/Rust/actix/Cargo.toml

@@ -34,7 +34,7 @@ actix-service = "1.0.1"
 snmalloc-rs = "0.2.6"
 snmalloc-rs = "0.2.6"
 askama = "0.8"
 askama = "0.8"
 markup = "0.4.1"
 markup = "0.4.1"
-yarte = "0.3"
+yarte = "0.9"
 serde = "1.0"
 serde = "1.0"
 serde_json = "1.0"
 serde_json = "1.0"
 serde_derive = "1.0"
 serde_derive = "1.0"

+ 1 - 1
frameworks/Rust/actix/src/utils.rs

@@ -62,7 +62,7 @@ markup::define! {
 }
 }
 
 
 #[derive(Template)]
 #[derive(Template)]
-#[template(path = "fortune.hbs")]
+#[template(path = "fortune")]
 pub struct FortunesYarteTemplate {
 pub struct FortunesYarteTemplate {
     pub fortunes: Vec<Fortune>,
     pub fortunes: Vec<Fortune>,
 }
 }