summaryrefslogtreecommitdiffstats
path: root/lib/core/libimagrt/src/logger.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-05-31 13:31:52 +0200
committerMatthias Beyer <mail@beyermatthias.de>2020-05-31 18:03:26 +0200
commit33a2c03ea8361ae61c162e307e10bc7266c1b249 (patch)
tree30bdf5c653789d800e1013616b7fab56f78a080a /lib/core/libimagrt/src/logger.rs
parentcd5dbbe1656de505eb93df389429bbe21c36b912 (diff)
handlebars: 2 -> 3
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'lib/core/libimagrt/src/logger.rs')
-rw-r--r--lib/core/libimagrt/src/logger.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/core/libimagrt/src/logger.rs b/lib/core/libimagrt/src/logger.rs
index 329f9f09..94d72a16 100644
--- a/lib/core/libimagrt/src/logger.rs
+++ b/lib/core/libimagrt/src/logger.rs
@@ -48,19 +48,19 @@ impl Default for LogDestination {
/// Logger implementation for `log` crate.
#[derive(Debug)]
-pub struct ImagLogger {
+pub struct ImagLogger<'rc> {
global_loglevel : Level,
#[allow(unused)]
global_destinations : Vec<LogDestination>,
- handlebars: Handlebars,
+ handlebars: Handlebars<'rc>,
}
-impl ImagLogger {
+impl<'rc> ImagLogger<'rc> {
/// Create a new ImagLogger object with a certain level
- pub fn new(matches: &ArgMatches, config: Option<&Value>) -> Result<ImagLogger> {
+ pub fn new(matches: &ArgMatches, config: Option<&Value>) -> Result<ImagLogger<'rc>> {
let mut handlebars = Handlebars::new();
handlebars.register_escape_fn(::handlebars::no_escape);
@@ -90,7 +90,7 @@ impl ImagLogger {
}
-impl Log for ImagLogger {
+impl<'rc> Log for ImagLogger<'rc> {
fn enabled(&self, metadata: &Metadata) -> bool {
metadata.level() <= self.global_loglevel