From d01ab0aa7d439f82bce1b31734b113151e21e9a0 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sat, 20 Jun 2020 15:53:09 -0400 Subject: [PATCH] remove redundant clones of paths in `@import` --- src/parse/import.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parse/import.rs b/src/parse/import.rs index 3fb553e..dde7bbd 100644 --- a/src/parse/import.rs +++ b/src/parse/import.rs @@ -58,8 +58,8 @@ impl<'a> Parser<'a> { path_buf.with_file_name(name).with_extension("scss"), path_buf.with_file_name(format!("_{}.scss", name.to_str().unwrap())), path_buf.clone(), - path_buf.clone().join("index.scss"), - path_buf.clone().join("_index.scss"), + path_buf.join("index.scss"), + path_buf.join("_index.scss"), ]; for name in &paths {