fix clippy lints for CI compatibility

This commit is contained in:
2026-06-02 17:36:31 +02:00
parent 488243183c
commit eda62884a4
3 changed files with 18 additions and 28 deletions
+5
View File
@@ -50,6 +50,11 @@ All notable changes to NotAlterra are documented in this file.
- **`is_cloud_path()` removed** — was only used by the discovery-era cloud
detection path.
### Notes
- Working copy diverged from remote after signing the previous commit
on a different clone. Resolved via `git reset --soft origin/master`
(no content lost, identical tree).
## [v0.2.3] — 2026-06-01
- Zero compiler warnings (`deny(unsafe_code)`, `allow(dead_code)` where intentional)
+12 -27
View File
@@ -276,9 +276,6 @@ fn run_disclaimer<B: Backend>(terminal: &mut Terminal<B>, app: &mut App) -> Resu
}
/// Scan the local filesystem for Subnautica 2 save folders.
///
/// Spawns a background thread for the scan and shows a live elapsed timer.
// ── menu actions ───────────────────────────────────────────────────────────
/// Open the input dialog for the user to type a save-folder path.
@@ -330,30 +327,20 @@ fn action_set_save_folder<B: Backend>(terminal: &mut Terminal<B>, app: &mut App)
input_state.cancelled = true;
return Ok(());
}
KeyCode::Char(c) => {
if ok_selected {
input_state.insert(c);
}
KeyCode::Char(c) if ok_selected => {
input_state.insert(c);
}
KeyCode::Backspace => {
if ok_selected {
input_state.backspace();
}
KeyCode::Backspace if ok_selected => {
input_state.backspace();
}
KeyCode::Delete => {
if ok_selected {
input_state.delete();
}
KeyCode::Delete if ok_selected => {
input_state.delete();
}
KeyCode::Left => {
if ok_selected {
input_state.cursor_left();
}
KeyCode::Left if ok_selected => {
input_state.cursor_left();
}
KeyCode::Right => {
if ok_selected {
input_state.cursor_right();
}
KeyCode::Right if ok_selected => {
input_state.cursor_right();
}
KeyCode::Tab => {
ok_selected = !ok_selected;
@@ -365,10 +352,8 @@ fn action_set_save_folder<B: Backend>(terminal: &mut Terminal<B>, app: &mut App)
_ => {}
}
}
Event::Paste(s) => {
if ok_selected {
input_state.insert_str(&s);
}
Event::Paste(s) if ok_selected => {
input_state.insert_str(&s);
}
_ => {}
}
+1 -1
View File
@@ -736,7 +736,7 @@ pub fn draw_input_dialog(
);
// Input line with cursor
let cursor_visible = (std::time::Instant::now().elapsed().as_millis() / 500) % 2 == 0;
let cursor_visible = (std::time::Instant::now().elapsed().as_millis() / 500).is_multiple_of(2);
let mut input_spans = vec![
Span::styled(" ", Style::default()),
];