diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-12-05 11:23:07 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-12-21 08:39:32 +0000 |
commit | e224ec2d7cbea36dcea43f2b0b5cb20c75c8c502 (patch) | |
tree | cb796bc7557c6ed3b0fcea677d4e4c3a209058f9 /templates | |
parent | 515096221b94857725e445a9669d3b2f239a9453 (diff) | |
download | subplot-e224ec2d7cbea36dcea43f2b0b5cb20c75c8c502.tar.gz |
rust: Use nameslug in rust template
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/rust/template.rs.tera | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/rust/template.rs.tera b/templates/rust/template.rs.tera index 845cbc7..f1b0580 100644 --- a/templates/rust/template.rs.tera +++ b/templates/rust/template.rs.tera @@ -26,7 +26,7 @@ lazy_static! { // {{ scenario.title }} #[test] -fn scenario_{{ loop.index }}() { +fn {{ scenario.title | nameslug }}() { let mut scenario = Scenario::new(&base64_decode("{{scenario.title | base64}}")); {% for step in scenario.steps %} let step = BUILDER_{{step.function}}::default() |