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");
for parsed_event in parsed_events {
EVENT_AGGREGATOR
.send(EditorCommand::NeovimRedrawEvent(parsed_event));
EVENT_AGGREGATOR.send(EditorCommand::NeovimRedrawEvent(parsed_event));
}
}
}
@ -51,13 +50,11 @@ impl Handler for NeovimHandler {
}
#[cfg(windows)]
"neovide.register_right_click" => {
EVENT_AGGREGATOR
.send(UiCommand::Parallel(ParallelCommand::RegisterRightClick));
EVENT_AGGREGATOR.send(UiCommand::Parallel(ParallelCommand::RegisterRightClick));
}
#[cfg(windows)]
"neovide.unregister_right_click" => {
EVENT_AGGREGATOR
.send(UiCommand::Parallel(ParallelCommand::UnregisterRightClick));
EVENT_AGGREGATOR.send(UiCommand::Parallel(ParallelCommand::UnregisterRightClick));
}
_ => {}
}

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

Loading…
Cancel
Save