Update Clippy to v1.73 (#3135)

This commit is contained in:
daxpedda 2023-10-08 01:21:46 +02:00 committed by GitHub
parent ee0db52ac4
commit 48a1e84906
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View file

@ -96,7 +96,7 @@ fn get_logical_key_char(ns_event: &NSEvent, modifierless_chars: &str) -> Key {
let string = ns_event
.charactersIgnoringModifiers()
.map(|s| s.to_string())
.unwrap_or_else(String::new);
.unwrap_or_default();
if string.is_empty() {
// Probably a dead key
let first_char = modifierless_chars.chars().next();
@ -126,7 +126,7 @@ pub(crate) fn create_key_event(
let characters = ns_event
.characters()
.map(|s| s.to_string())
.unwrap_or_else(String::new);
.unwrap_or_default();
if characters.is_empty() {
None
} else {