mirror of
https://github.com/lune-org/lune.git
synced 2025-04-19 19:34:02 +01:00
fix: improper trait bounds
This commit is contained in:
parent
207de2f09c
commit
a5d118db4b
1 changed files with 2 additions and 6 deletions
|
@ -1,9 +1,5 @@
|
||||||
use console::Style;
|
use console::Style;
|
||||||
use std::{
|
use std::{env, path::Path, process::ExitCode};
|
||||||
env,
|
|
||||||
path::{Path, PathBuf},
|
|
||||||
process::ExitCode,
|
|
||||||
};
|
|
||||||
use tokio::{
|
use tokio::{
|
||||||
fs::{self, OpenOptions},
|
fs::{self, OpenOptions},
|
||||||
io::AsyncWriteExt,
|
io::AsyncWriteExt,
|
||||||
|
@ -17,7 +13,7 @@ use mlua::Compiler as LuaCompiler;
|
||||||
then writes it to an output file, with the required permissions.
|
then writes it to an output file, with the required permissions.
|
||||||
*/
|
*/
|
||||||
#[allow(clippy::similar_names)]
|
#[allow(clippy::similar_names)]
|
||||||
pub async fn build_standalone<T: AsRef<Path> + Into<PathBuf>>(
|
pub async fn build_standalone<T: AsRef<Path>>(
|
||||||
script_path: String,
|
script_path: String,
|
||||||
output_path: T,
|
output_path: T,
|
||||||
code: impl AsRef<[u8]>,
|
code: impl AsRef<[u8]>,
|
||||||
|
|
Loading…
Add table
Reference in a new issue