From 9d3e0824a0966c648e951e5928c241700ee931fb Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Wed, 31 Mar 2021 13:19:55 -0600 Subject: "im not owned! im not owned!!", i continue to insist as i allocate and transform into a String https://twitter.com/dril_rs/status/1035032121860009984 --- src/makefile/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/makefile/mod.rs') diff --git a/src/makefile/mod.rs b/src/makefile/mod.rs index 582c62d..270dd46 100644 --- a/src/makefile/mod.rs +++ b/src/makefile/mod.rs @@ -303,8 +303,8 @@ impl<'a> Makefile<'a> { if let Some(inference_match) = inference_match { let new_rule = InferenceRule { - product: inference_match.name("s1").unwrap().as_str().to_string(), - prereq: inference_match.name("s2").unwrap().as_str().to_string(), + product: inference_match.name("s1").unwrap().as_str().to_owned(), + prereq: inference_match.name("s2").unwrap().as_str().to_owned(), commands, }; -- cgit v1.2.3