diff options
Diffstat (limited to '')
-rw-r--r-- | askama_derive/src/input.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/askama_derive/src/input.rs b/askama_derive/src/input.rs index 0cc852c..0bf6093 100644 --- a/askama_derive/src/input.rs +++ b/askama_derive/src/input.rs @@ -4,7 +4,6 @@ use quote::ToTokens; use askama_shared::{Config, Syntax}; -use std::io::{self, Write}; use std::path::PathBuf; use syn; @@ -146,12 +145,10 @@ impl<'a> TemplateInput<'a> { }; if parent.is_some() { - io::stderr() - .write_fmt(format_args!( - " --> in struct {}\n = use of deprecated field '_parent'\n", - ast.ident - )) - .unwrap(); + eprint!( + " --> in struct {}\n = use of deprecated field '_parent'\n", + ast.ident + ); } // Validate syntax |