chore: Fix clippy violations from Cargo.toml (#15216)

/cc @maxdeviant 
Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2024-07-25 20:22:01 +02:00 committed by GitHub
parent d755d29577
commit 86456ce379
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 94 additions and 93 deletions

View file

@ -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));
}

View file

@ -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);