diff --git a/src/cli/build.rs b/src/cli/build.rs index 5b621ed..99c64e7 100644 --- a/src/cli/build.rs +++ b/src/cli/build.rs @@ -1,9 +1,5 @@ use console::Style; -use std::{ - env, - path::{Path, PathBuf}, - process::ExitCode, -}; +use std::{env, path::Path, process::ExitCode}; use tokio::{ fs::{self, OpenOptions}, io::AsyncWriteExt, @@ -17,7 +13,7 @@ use mlua::Compiler as LuaCompiler; then writes it to an output file, with the required permissions. */ #[allow(clippy::similar_names)] -pub async fn build_standalone + Into>( +pub async fn build_standalone>( script_path: String, output_path: T, code: impl AsRef<[u8]>,