aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src/generator.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-12-25 12:30:10 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-12-25 12:30:10 +0100
commit8afa4d9aec0a9c9321eff4e90db99ab576b7f2a9 (patch)
tree7eba48dfb88c8338e098070b511535a013fc800a /askama_shared/src/generator.rs
parent1e72dad497ca57608c14fc6911eee0f9c0afa0cd (diff)
downloadaskama-8afa4d9aec0a9c9321eff4e90db99ab576b7f2a9.tar.gz
askama-8afa4d9aec0a9c9321eff4e90db99ab576b7f2a9.tar.bz2
askama-8afa4d9aec0a9c9321eff4e90db99ab576b7f2a9.zip
Make generated traits public for use in other modules (fixes #61)
Diffstat (limited to '')
-rw-r--r--askama_shared/src/generator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs
index 63ebeb3..a1b090d 100644
--- a/askama_shared/src/generator.rs
+++ b/askama_shared/src/generator.rs
@@ -234,7 +234,7 @@ impl<'a> Generator<'a> {
// Defines the `TraitFromPathName` trait.
fn define_trait(&mut self, state: &'a State) {
- self.writeln(&format!("trait {} {{", state.trait_name));
+ self.writeln(&format!("pub trait {} {{", state.trait_name));
self.write_block_defs(state);
self.writeln(&format!(
"fn render_trait_into(&self, timpl: &{}, writer: &mut ::std::fmt::Write) \