diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/tests/simple.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs index 3e156b4..7dcacba 100644 --- a/testing/tests/simple.rs +++ b/testing/tests/simple.rs @@ -265,7 +265,7 @@ fn test_slice_literal() { #[derive(Template)] #[template(source = "Hello, {{ world(\"123\", 4) }}!", ext = "txt")] struct FunctionRefTemplate { - world: fn(s: &str, v: u8) -> String, + world: fn(s: &str, v: &u8) -> String, } #[test] @@ -276,7 +276,7 @@ fn test_func_ref_call() { assert_eq!(t.render().unwrap(), "Hello, world(123, 4)!"); } -fn world2(s: &str, v: u8) -> String { +fn world2(s: &str, v: &u8) -> String { format!("world{}{}", v, s) } @@ -294,7 +294,7 @@ fn test_path_func_call() { struct FunctionTemplate; impl FunctionTemplate { - fn world3(&self, s: &str, v: u8) -> String { + fn world3(&self, s: &str, v: &u8) -> String { format!("world{}{}", s, v) } } |