Skip to content
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

Merged
merged 4 commits into from
Jul 30, 2024
Merged

Rust redo #7

merged 4 commits into from
Jul 30, 2024

Conversation

strawmelonjuice
Copy link
Owner

No description provided.

@strawmelonjuice strawmelonjuice merged commit 8492f02 into main Jul 30, 2024
2 of 3 checks passed
@strawmelonjuice strawmelonjuice deleted the rust-redo branch July 30, 2024 16:53
// 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

couldn't read source/Main/src/../../../target/generated/js/main.js: No such file or directory (os error 2)
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

unused import: futures::FutureExt
Comment on lines +93 to +103
} 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

this else { if .. } block can be collapsed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant