-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust redo #7
Rust redo #7
Conversation
…hould not be on main branch lol
Shit works!
// We gotta write the javascript to a temporary file and then run it. | ||
let jstempfolder = tempfolder().join("js"); | ||
std::fs::create_dir_all(&jstempfolder).unwrap(); | ||
let jsfile = include_bytes!("../../../target/generated/js/main.js"); |
Check failure
Code scanning / clippy
couldn't read source/Main/src/../../../target/generated/js/main.js: No such file or directory (os error 2) Error
use crate::files::tempfolder; | ||
use crate::{EPSCommunicationsID, ServerContext}; | ||
use actix_web::web::Data; | ||
use futures::FutureExt; |
Check warning
Code scanning / clippy
unused import: futures::FutureExt Warning
} else { | ||
if o.replace("\n", "").is_empty() { | ||
// Just wait for the next line lol | ||
} else { | ||
let mut z = y.lock().unwrap(); | ||
z.clear(); | ||
config_clone | ||
.clone() | ||
.tell(format!("[JsPluginRuntime]: {}", o)); | ||
} | ||
} |
Check warning
Code scanning / clippy
this else { if .. } block can be collapsed Warning
No description provided.