Skip to content

Commit

Permalink
Specify ref type in examples.
Browse files Browse the repository at this point in the history
Some dyn some impl, since both are fine and these are examples.
  • Loading branch information
kaj committed Dec 11, 2019
1 parent 1176743 commit caa13cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ructe"
version = "0.8.0"
version = "0.8.1-PRE"
authors = ["Rasmus Kaj <[email protected]>"]
description = "Rust Compiled Templates, efficient type-safe web page templates."
documentation = "https://docs.rs/ructe"
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/templates/hello_code.rs.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@(head: &ToHtml, content: &ToHtml)
@(head: &dyn ToHtml, content: &dyn ToHtml)

<h2>@head</h2>
@content
2 changes: 1 addition & 1 deletion examples/simple/templates/hello_use_templates.rs.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@use super::hello_html;
@use super::hello_code_html;

@(body: &ToHtml)
@(body: &impl ToHtml)

@:hello_html()
@:hello_code_html(&"foo", body)

0 comments on commit caa13cb

Please sign in to comment.