-> tera.register_function("fluent", FluentLoader::new(&*LOCALES));
Gives away a long error message
-------------------------------------------_
`
error[E0277]: expected a std::ops::Fn<(&std::collections::HashMap<std::string::String, serde_json::value::Value>,)> closure, found fluent_templates::loader::FluentLoader<&fluent_templates::loader::static_loader::StaticLoader>
--> src/main.rs:72:38
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an Fn<(&std::collections::HashMap<std::string::String, serde_json::value::Value>,)> closure, found fluent_templates::loader::FluentLoader<&fluent_templates::loader::static_loader::StaticLoader>
= help: the trait for<'r> std::ops::Fn<(&'r std::collections::HashMap<std::string::String, serde_json::value::Value>,)> is not implemented for fluent_templates::loader::FluentLoader<&fluent_templates::loader::static_loader::StaticLoader>
= note: required because of the requirements on the impl of tera::builtins::functions::Function for fluent_templates::loader::FluentLoader<&fluent_templates::loader::static_loader::StaticLoader>
error[E0277]: expected a std::ops::FnOnce<(&std::collections::HashMap<std::string::String, serde_json::value::Value>,)> closure, found fluent_templates::loader::FluentLoader<&fluent_templates::loader::static_loader::StaticLoader>
--> src/main.rs:72:38
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an FnOnce<(&std::collections::HashMap<std::string::String, serde_json::value::Value>,)> closure, found fluent_templates::loader::FluentLoader<&fluent_templates::loader::static_loader::StaticLoader>
= help: the trait std::ops::FnOnce<(&std::collections::HashMap<std::string::String, serde_json::value::Value>,)> is not implemented for fluent_templates::loader::FluentLoader<&fluent_templates::loader::static_loader::StaticLoader>
= note: required because of the requirements on the impl of tera::builtins::functions::Function for fluent_templates::loader::FluentLoader<&fluent_templates::loader::static_loader::StaticLoader>
-> tera.register_function("fluent", FluentLoader::new(&*LOCALES)); Gives away a long error message
-------------------------------------------_ `
std::ops::Fn<(&std::collections::HashMap<std::string::String, serde_json::value::Value>,)>
closure, foundfluent_templates::loader::FluentLoader<&fluent_templates::loader::static_loader::StaticLoader>
--> src/main.rs:72:38Fn<(&std::collections::HashMap<std::string::String, serde_json::value::Value>,)>
closure, foundfluent_templates::loader::FluentLoader<&fluent_templates::loader::static_loader::StaticLoader>
= help: the trait
for<'r> std::ops::Fn<(&'r std::collections::HashMap<std::string::String, serde_json::value::Value>,)>
is not implemented forfluent_templates::loader::FluentLoader<&fluent_templates::loader::static_loader::StaticLoader>
= note: required because of the requirements on the impl oftera::builtins::functions::Function
forfluent_templates::loader::FluentLoader<&fluent_templates::loader::static_loader::StaticLoader>
std::ops::FnOnce<(&std::collections::HashMap<std::string::String, serde_json::value::Value>,)>
closure, foundfluent_templates::loader::FluentLoader<&fluent_templates::loader::static_loader::StaticLoader>
--> src/main.rs:72:38FnOnce<(&std::collections::HashMap<std::string::String, serde_json::value::Value>,)>
closure, foundfluent_templates::loader::FluentLoader<&fluent_templates::loader::static_loader::StaticLoader>
= help: the trait
std::ops::FnOnce<(&std::collections::HashMap<std::string::String, serde_json::value::Value>,)>
is not implemented forfluent_templates::loader::FluentLoader<&fluent_templates::loader::static_loader::StaticLoader>
= note: required because of the requirements on the impl oftera::builtins::functions::Function
forfluent_templates::loader::FluentLoader<&fluent_templates::loader::static_loader::StaticLoader>
`