chore: Fix clippy violations from Cargo.toml (#15216)
/cc @maxdeviant Release Notes: - N/A
This commit is contained in:
parent
d755d29577
commit
86456ce379
25 changed files with 94 additions and 93 deletions
|
@ -13,9 +13,9 @@ use workspace::Workspace;
|
|||
|
||||
actions!(vim, [Repeat, EndRepeat, ToggleRecord, ReplayLastRecording]);
|
||||
|
||||
fn should_replay(action: &Box<dyn Action>) -> bool {
|
||||
fn should_replay(action: &dyn Action) -> bool {
|
||||
// skip so that we don't leave the character palette open
|
||||
if editor::actions::ShowCharacterPalette.partial_eq(&**action) {
|
||||
if editor::actions::ShowCharacterPalette.partial_eq(action) {
|
||||
return false;
|
||||
}
|
||||
true
|
||||
|
@ -121,7 +121,7 @@ impl Replayer {
|
|||
};
|
||||
match action {
|
||||
ReplayableAction::Action(action) => {
|
||||
if should_replay(&action) {
|
||||
if should_replay(&*action) {
|
||||
cx.dispatch_action(action.boxed_clone());
|
||||
cx.defer(move |cx| observe_action(action.boxed_clone(), cx));
|
||||
}
|
||||
|
|
|
@ -271,7 +271,7 @@ pub fn move_to_internal(
|
|||
}
|
||||
let Some(query) = search_bar.query_suggestion(cx) else {
|
||||
vim.clear_operator(cx);
|
||||
let _ = search_bar.search("", None, cx);
|
||||
drop(search_bar.search("", None, cx));
|
||||
return None;
|
||||
};
|
||||
let mut query = regex::escape(&query);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue