Fix lints for Rust 1.89 and bump MSRV to 1.88
This commit is contained in:
parent
88185f9d97
commit
d5cd0a6de9
21 changed files with 360 additions and 395 deletions
|
|
@ -321,10 +321,11 @@ impl editor::Editor for Editor {
|
|||
);
|
||||
|
||||
// Deselect if selection matches cursor position
|
||||
if let Some((start, end)) = editor.selection_bounds() {
|
||||
if start.line == end.line && start.index == end.index {
|
||||
editor.set_selection(cosmic_text::Selection::None);
|
||||
}
|
||||
if let Some((start, end)) = editor.selection_bounds()
|
||||
&& start.line == end.line
|
||||
&& start.index == end.index
|
||||
{
|
||||
editor.set_selection(cosmic_text::Selection::None);
|
||||
}
|
||||
}
|
||||
Action::SelectWord => {
|
||||
|
|
@ -438,10 +439,11 @@ impl editor::Editor for Editor {
|
|||
);
|
||||
|
||||
// Deselect if selection matches cursor position
|
||||
if let Some((start, end)) = editor.selection_bounds() {
|
||||
if start.line == end.line && start.index == end.index {
|
||||
editor.set_selection(cosmic_text::Selection::None);
|
||||
}
|
||||
if let Some((start, end)) = editor.selection_bounds()
|
||||
&& start.line == end.line
|
||||
&& start.index == end.index
|
||||
{
|
||||
editor.set_selection(cosmic_text::Selection::None);
|
||||
}
|
||||
}
|
||||
Action::Scroll { lines } => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue