diff options
Diffstat (limited to 'lib/core')
-rw-r--r-- | lib/core/libimagrt/Cargo.toml | 4 | ||||
-rw-r--r-- | lib/core/libimagrt/src/logger.rs | 10 | ||||
-rw-r--r-- | lib/core/libimagstore/Cargo.toml | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/lib/core/libimagrt/Cargo.toml b/lib/core/libimagrt/Cargo.toml index 34a9d964..c8daf777 100644 --- a/lib/core/libimagrt/Cargo.toml +++ b/lib/core/libimagrt/Cargo.toml @@ -23,7 +23,7 @@ maintenance = { status = "actively-developed" } env_logger = "0.7" toml = "0.5.1" xdg-basedir = "1.0.0" -itertools = "0.8.0" +itertools = "0.9.0" ansi_term = "0.12" atty = "0.2.11" anyhow = "1" @@ -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 diff --git a/lib/core/libimagstore/Cargo.toml b/lib/core/libimagstore/Cargo.toml index 5d5c56f0..f5df8e37 100644 --- a/lib/core/libimagstore/Cargo.toml +++ b/lib/core/libimagstore/Cargo.toml @@ -23,7 +23,7 @@ maintenance = { status = "actively-developed" } glob = "0.3.0" log = "0.4.6" regex = "1.1.7" -semver = "0.9.0" +semver = "0.10.0" toml = "0.5.1" walkdir = "2.2.8" is-match = "0.1.0" |