formatting and clippy fixes

macos-click-through
Keith Simmons 3 years ago committed by Keith Simmons
parent 616ffe15ba
commit df52afa106

@ -41,8 +41,7 @@ impl Handler for NeovimHandler {
.unwrap_or_explained_panic("Could not parse event from neovim"); .unwrap_or_explained_panic("Could not parse event from neovim");
for parsed_event in parsed_events { for parsed_event in parsed_events {
EVENT_AGGREGATOR EVENT_AGGREGATOR.send(EditorCommand::NeovimRedrawEvent(parsed_event));
.send(EditorCommand::NeovimRedrawEvent(parsed_event));
} }
} }
} }
@ -51,13 +50,11 @@ impl Handler for NeovimHandler {
} }
#[cfg(windows)] #[cfg(windows)]
"neovide.register_right_click" => { "neovide.register_right_click" => {
EVENT_AGGREGATOR EVENT_AGGREGATOR.send(UiCommand::Parallel(ParallelCommand::RegisterRightClick));
.send(UiCommand::Parallel(ParallelCommand::RegisterRightClick));
} }
#[cfg(windows)] #[cfg(windows)]
"neovide.unregister_right_click" => { "neovide.unregister_right_click" => {
EVENT_AGGREGATOR EVENT_AGGREGATOR.send(UiCommand::Parallel(ParallelCommand::UnregisterRightClick));
.send(UiCommand::Parallel(ParallelCommand::UnregisterRightClick));
} }
_ => {} _ => {}
} }

@ -169,7 +169,7 @@ impl CachingShaper {
Script::Latin, Script::Latin,
text.graphemes(true) text.graphemes(true)
.enumerate() .enumerate()
.map(|(glyph_index, unicode_segment)| { .flat_map(|(glyph_index, unicode_segment)| {
unicode_segment.chars().map(move |character| { unicode_segment.chars().map(move |character| {
let token = Token { let token = Token {
ch: character, ch: character,
@ -182,7 +182,6 @@ impl CachingShaper {
token token
}) })
}) })
.flatten(),
); );
let mut results = Vec::new(); let mut results = Vec::new();

Loading…
Cancel
Save