Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: clippy lints #10

Merged
merged 1 commit into from
Feb 7, 2024
Merged

fix: clippy lints #10

merged 1 commit into from
Feb 7, 2024

Conversation

joshka
Copy link
Member

@joshka joshka commented Feb 7, 2024

No description provided.

@joshka joshka merged commit be0aa91 into main Feb 7, 2024
@joshka joshka deleted the jm/clippy branch February 7, 2024 03:28
pub fn insert(&mut self, mode: &Mode, key_events: &[KeyEvent], action: Action) {
pub fn insert(&mut self, mode: Mode, key_events: &[KeyEvent], action: Action) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mode impls Copy

let bindings_for_mode = self.0.entry(mode.clone()).or_insert_with(HashMap::new);
let bindings_for_mode = self.0.entry(mode).or_default();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kdheepak kdheepak mentioned this pull request Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant