mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-19 16:36:35 +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",
|
||||
"+nightly",
|
||||
"clippy",
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue