Didn't feel like the hassle of using "fn main() {}" in every eval session.
This commit is contained in:
parent
b15f3aad6b
commit
6955049dc0
@ -26,7 +26,7 @@ pub async fn eval(
|
||||
|
||||
{
|
||||
let mut file = std::fs::File::create(&file_path)?;
|
||||
writeln!(file, "{}", code)?;
|
||||
writeln!(file, "fn main() {{ {} }}", code)?;
|
||||
}
|
||||
|
||||
// Compile
|
||||
|
Loading…
Reference in New Issue
Block a user