Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: render_utag: unexpected value VecVal([]) #72

Open
MaulingMonkey opened this issue Aug 24, 2020 · 0 comments
Open

bug: render_utag: unexpected value VecVal([]) #72

MaulingMonkey opened this issue Aug 24, 2020 · 0 comments

Comments

@MaulingMonkey
Copy link

I've created a minimal repro case to reproduce this panic, which requests I file an issue:

thread 'main' panicked at 'bug: render_utag: unexpected value VecVal([]). Please report this issue on GitHub if you find an input that triggers this case.', C:\Users\...\.cargo\registry\src\gitpro.ttaallkk.top-1ecc6299db9ec823\mustache-0.9.0\src\template.rs:224:25

Cargo.toml

[package]
name    = "mustache-bug-repo"
version = "0.1.0"
edition = "2018"

[dependencies]
mustache = "=0.9.0"

src/main.rs

fn main() {
    let template = mustache::compile_str("{{authors}}").unwrap();
    let data = mustache::MapBuilder::new()
        .insert_vec("authors", |v| v)
        .build();
    let r = template.render_data_to_string(&data).unwrap();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant