mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-27 20:34:03 +00:00
Fix for recent rust-analyzer checkOnSave change; clippy fix
This commit is contained in:
parent
180f6f4228
commit
a364a214e2
2 changed files with 3 additions and 4 deletions
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"rust-analyzer.checkOnSave.overrideCommand": [
|
"rust-analyzer.check.overrideCommand": [
|
||||||
"cargo",
|
"cargo",
|
||||||
"+nightly",
|
"+nightly",
|
||||||
"clippy",
|
"clippy",
|
||||||
|
|
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue