v1.2.2: text measuring improvements, minor code clean

fixed some clippy warnings, ignored many that I do not care about. also, added demo video and updated koxinga image
This commit is contained in:
stjet
2025-09-28 04:39:41 +00:00
parent 10daa9982b
commit 40f6795163
24 changed files with 173 additions and 119 deletions

View File

@@ -4,5 +4,18 @@ version = "0.1.0"
license = "GPL-3.0-or-later"
edition = "2021"
[lints.clippy]
len_zero = "allow"
comparison_to_empty = "allow"
manual_saturating_arithmetic = "allow"
result_unit_err = "allow"
needless_borrow = "allow"
needless_borrows_for_generic_args = "allow"
redundant_static_lifetimes = "allow"
collapsible_else_if = "allow"
too_many_arguments = "allow"
useless_conversion = "allow"
unnecessary_mut_passed = "allow"
[dependencies]
libc = "0.2"

View File

@@ -71,9 +71,9 @@ impl Iterator for RawStdin {
b'D' => Key::ArrowLeft,
_ => Key::Other(n),
}
} else if n.is_ok() {
} else if let Ok(n) = n {
//Alt+<char> sends Esc+<char>
Key::Alt(char::from(n.unwrap()))
Key::Alt(char::from(n))
} else {
Key::Esc
}