1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-10-02 17:24:28 +00:00

Fix for recent rust-analyzer checkOnSave change; clippy fix

This commit is contained in:
jugeeya 2023-01-17 17:23:24 -08:00
parent 180f6f4228
commit a364a214e2
2 changed files with 3 additions and 4 deletions

View file

@ -1,5 +1,5 @@
{ {
"rust-analyzer.checkOnSave.overrideCommand": [ "rust-analyzer.check.overrideCommand": [
"cargo", "cargo",
"+nightly", "+nightly",
"clippy", "clippy",

View file

@ -292,7 +292,7 @@ pub unsafe fn quick_menu_loop() {
continue; continue;
} }
let mut app = &mut *QUICK_MENU_APP.data_ptr(); let app = &mut *QUICK_MENU_APP.data_ptr();
button_presses.a.read_press().then(|| { button_presses.a.read_press().then(|| {
app.on_a(); app.on_a();
received_input = true; received_input = true;
@ -337,11 +337,10 @@ pub unsafe fn quick_menu_loop() {
if received_input { if received_input {
terminal terminal
.draw(|f| json_response = training_mod_tui::ui(f, &mut app)) .draw(|f| json_response = training_mod_tui::ui(f, app))
.unwrap(); .unwrap();
received_input = false; received_input = false;
} }
drop(app);
} }
} }
} }