From 45c472bc2711416347fe34da60dbebe76f7c13c1 Mon Sep 17 00:00:00 2001 From: Simeon Romanov Date: Fri, 6 Oct 2023 20:22:59 +0300 Subject: [PATCH] clippy + FMT FIXES fixes --- frontend/build.rs | 10 +++++++--- frontend/frontend.rs | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/build.rs b/frontend/build.rs index ea79c38d..2fc665c6 100644 --- a/frontend/build.rs +++ b/frontend/build.rs @@ -89,11 +89,15 @@ pub fn move_frontend() { .append(true) .open("build.log") .expect("Couldn't open log file..."); - file.write(format!("PROJECT DIR: {project_dir:?}\n").as_bytes()) + file.write_all(format!("PROJECT DIR: {project_dir:?}\n").as_bytes()) .expect("Couldn't write to build log"); - file.write(format!("Moving /{FRONTEND_DIR} from {project_dir:?} to: {target:?}\n").as_bytes()) - .expect("Couldn't write to build log"); + project_dir.push(FRONTEND_DIR); + + file.write_all( + format!("Moving /{FRONTEND_DIR} from {project_dir:?} to: {target:?}\n").as_bytes(), + ) + .expect("Couldn't write to build log"); copy_dir_all(project_dir, target).expect("Couldn't move frontend build artifacts"); } diff --git a/frontend/frontend.rs b/frontend/frontend.rs index e69de29b..8b137891 100644 --- a/frontend/frontend.rs +++ b/frontend/frontend.rs @@ -0,0 +1 @@ +