Add typo detection to CI (#4107)

Adding the typos crate to our CI will take some doing, as we have
several tests which rely on typos in various ways (e.g. checking state
as the user types), but I thought I'd take a first stab at fixing what
it finds.

Release Notes:

- N/A
This commit is contained in:
Mikayla Maki
2024-01-17 17:13:47 -08:00
committed by GitHub
64 changed files with 146 additions and 114 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ impl Keystroke {
// the ime_key or the key. On some non-US keyboards keys we use in our
// bindings are behind option (for example `$` is typed `alt-ç` on a Czech keyboard),
// and on some keyboards the IME handler converts a sequence of keys into a
// specific character (for example `"` is typed as `" space` on a brazillian keyboard).
// specific character (for example `"` is typed as `" space` on a brazilian keyboard).
pub fn match_candidates(&self) -> SmallVec<[Keystroke; 2]> {
let mut possibilities = SmallVec::new();
match self.ime_key.as_ref() {
+1 -1
View File
@@ -10,7 +10,7 @@ mod open_type;
mod platform;
mod text_system;
mod window;
mod window_appearence;
mod window_appearance;
use crate::{px, size, GlobalPixels, Pixels, Size};
use cocoa::{