Fix latest clippy lints
This commit is contained in:
parent
7420ea7a6b
commit
3e82ab069e
3 changed files with 16 additions and 18 deletions
|
|
@ -615,25 +615,21 @@ where
|
|||
keyboard::KeyCode::C
|
||||
if state.keyboard_modifiers.command() =>
|
||||
{
|
||||
match state.cursor.selection(value) {
|
||||
Some((start, end)) => {
|
||||
clipboard.write(
|
||||
value.select(start, end).to_string(),
|
||||
);
|
||||
}
|
||||
None => {}
|
||||
if let Some((start, end)) =
|
||||
state.cursor.selection(value)
|
||||
{
|
||||
clipboard
|
||||
.write(value.select(start, end).to_string());
|
||||
}
|
||||
}
|
||||
keyboard::KeyCode::X
|
||||
if state.keyboard_modifiers.command() =>
|
||||
{
|
||||
match state.cursor.selection(value) {
|
||||
Some((start, end)) => {
|
||||
clipboard.write(
|
||||
value.select(start, end).to_string(),
|
||||
);
|
||||
}
|
||||
None => {}
|
||||
if let Some((start, end)) =
|
||||
state.cursor.selection(value)
|
||||
{
|
||||
clipboard
|
||||
.write(value.select(start, end).to_string());
|
||||
}
|
||||
|
||||
let mut editor = Editor::new(value, &mut state.cursor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue