diff --git a/src/content/test_lib.rs b/src/content/test_lib.rs index 841fb1a..36d0572 100644 --- a/src/content/test_lib.rs +++ b/src/content/test_lib.rs @@ -28,7 +28,7 @@ impl<'a> ContentEngine<()> for MockContentEngine<'a> { route: Option, query_parameters: HashMap, request_headers: HashMap, - ) -> RenderContext<(), Self> { + ) -> RenderContext<'_, (), Self> { RenderContext { content_engine: self, handlebars_render_context: None, @@ -55,7 +55,7 @@ impl<'a> ContentEngine<()> for MockContentEngine<'a> { fn get(&self, _: &Route) -> Option<&ContentRepresentations> { None } - fn handlebars_registry(&self) -> &Handlebars { + fn handlebars_registry(&self) -> &Handlebars<'_> { &self.0 } } diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 6a65fec..ab27b9f 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -8,7 +8,6 @@ use operator::content::ContentDirectory; use operator::test_lib::*; use regex::Regex; use std::collections::BTreeMap; -use std::env; use std::io::Write; use std::process::Stdio; use std::str;