From 1ae22242c85519763419f541a5aa63516cd088a8 Mon Sep 17 00:00:00 2001 From: Penguin Date: Thu, 30 Dec 2021 15:40:37 -0600 Subject: [PATCH] commented issue where temporary value dropped while borrowed... --- igloo_core/src/igloo_target.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/igloo_core/src/igloo_target.rs b/igloo_core/src/igloo_target.rs index c3f74d4..2f8d3dc 100644 --- a/igloo_core/src/igloo_target.rs +++ b/igloo_core/src/igloo_target.rs @@ -979,6 +979,13 @@ endif\n").unwrap(); // Making so many vars here for // 1.) readability and // 2.) to prevent "temporary value dropped while borrowed" ?? + // I should revisit this to make sure there are no shenanigans + // original: + /* + - let absolute_script_path = std::path::PathBuf::from(&_script); + - let file_name = absolute_script_path.file_name().unwrap(); + + let file_name = std::path::PathBuf::from(&script).file_name().unwrap(); + */ let absolute_script_path = std::path::PathBuf::from(&_script); let file_name = absolute_script_path.file_name().unwrap(); let from_path = std::path::PathBuf::from(project.igloo.env.esfd.join(&_script));