summaryrefslogtreecommitdiffstats
path: root/lib/core
diff options
context:
space:
mode:
Diffstat (limited to 'lib/core')
-rw-r--r--lib/core/libimagrt/Cargo.toml2
-rw-r--r--lib/core/libimagrt/src/logger.rs10
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/core/libimagrt/Cargo.toml b/lib/core/libimagrt/Cargo.toml
index b390496c..c8daf777 100644
--- a/lib/core/libimagrt/Cargo.toml
+++ b/lib/core/libimagrt/Cargo.toml
@@ -48,7 +48,7 @@ default-features = false
features = ["std", "serde"]
[dependencies.handlebars]
-version = "2"
+version = "3"
default-features = false
features = ["no_logging"]
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