1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-10-02 09:14:27 +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",
"+nightly",
"clippy",

View file

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