From 04b5492f2e4594e660f77f57dbc3a44c192870b2 Mon Sep 17 00:00:00 2001 From: Matt Kantor Date: Wed, 21 Jan 2026 11:05:07 -0500 Subject: [PATCH] Fix some warnings in test code. --- src/content/test_lib.rs | 4 ++-- tests/integration_tests.rs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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;