Browse Source

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

Juan Aguilar 5 years ago
parent
commit
83d47f5aed
2 changed files with 2 additions and 2 deletions
  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"
 askama = "0.8"
 markup = "0.4.1"
-yarte = "0.3"
+yarte = "0.9"
 serde = "1.0"
 serde_json = "1.0"
 serde_derive = "1.0"

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

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