cargo fmt

Pure formatting, no functional change.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Bendik Aagaard Lynghaug
2026-10-03 09:16:15 +00:00
co-authored by Claude Fable 5.1
parent 856f8d8bf4
commit 42ffe9c492
14 changed files with 52 additions and 47 deletions
+9 -13
View File
@@ -1,10 +1,10 @@
use std::{
cmp::{max, min, Ordering},
cmp::{Ordering, max, min},
collections::HashMap,
default::Default,
fs::{read_to_string, File},
fs::{File, read_to_string},
io::Write,
process::{exit, Command},
process::{Command, exit},
sync::{Arc, Mutex},
thread,
};
@@ -14,18 +14,18 @@ use crate::{
color::Color,
event::{Event, Events, PointerButton, PointerEvent},
fonts::FontMap,
keyboard::{keysyms, KeyEvent},
keyboard::{KeyEvent, keysyms},
utils::{
desktop::{load_desktop_cache, load_desktop_files, write_desktop_cache, Desktop},
desktop::{Desktop, load_desktop_cache, load_desktop_files, write_desktop_cache},
xdg,
},
widgets::{Geometry, Widget},
};
use fuzzy_matcher::skim::SkimMatcherV2;
use fuzzy_matcher::FuzzyMatcher;
use fuzzy_matcher::skim::SkimMatcherV2;
use unicode_segmentation::UnicodeSegmentation;
use wayland_client::{protocol::wl_keyboard, WEnum};
use wayland_client::{WEnum, protocol::wl_keyboard};
struct Matcher {
matches: HashMap<Desktop, i64>,
@@ -692,11 +692,7 @@ impl Interface {
if line_height == 0 {
return;
}
let height = self
.inner
.geometry
.height
.saturating_sub(line_height + 8);
let height = self.inner.geometry.height.saturating_sub(line_height + 8);
let lines = height / line_height;
let offset = height % line_height;
@@ -847,7 +843,7 @@ impl Widget for Interface {
#[cfg(test)]
mod tests {
use super::{strip_field_codes, Prompt, PromptMode};
use super::{Prompt, PromptMode, strip_field_codes};
#[test]
fn prompt_cursor_is_grapheme_based() {