From 5d0091ab2a67ebeafaf5966815c7a8ae97654a57 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Fri, 23 Aug 2019 01:02:17 -0500 Subject: [PATCH] allowing the compiler to elide the lifetime --- src/hash/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hash/mod.rs b/src/hash/mod.rs index 49691a3..3cb9a42 100644 --- a/src/hash/mod.rs +++ b/src/hash/mod.rs @@ -183,7 +183,7 @@ pub fn prepare_image<'a>( /** * Turn the image into something we can work with */ -fn process_image<'a>(image_path: &'a str, size: u32) -> PreparedImage<'a> { +fn process_image(image_path: &str, size: u32) -> PreparedImage { // Otherwise let's do that work now and store it. // println!("Path: {}", image_path); let image = match image::open(Path::new(image_path)) {