Remove some unnecessary Eqs

This commit is contained in:
Conrad Irwin 2023-09-27 13:16:32 -06:00
parent 6e98cd5aad
commit a801a4aeef
3 changed files with 5 additions and 5 deletions

View file

@ -3,4 +3,4 @@ xtask = "run --package xtask --"
[build] [build]
# v0 mangling scheme provides more detailed backtraces around closures # v0 mangling scheme provides more detailed backtraces around closures
rustflags = ["-C", "symbol-mangling-version=v0"] rustflags = ["-C", "symbol-mangling-version=v0", "-C", "link-arg=-fuse-ld=/opt/homebrew/Cellar/llvm/16.0.6/bin/ld64.lld"]

View file

@ -159,7 +159,7 @@ pub struct CodeAction {
pub lsp_action: lsp::CodeAction, pub lsp_action: lsp::CodeAction,
} }
#[derive(Clone, Debug, PartialEq, Eq)] #[derive(Clone, Debug, PartialEq)]
pub enum Operation { pub enum Operation {
Buffer(text::Operation), Buffer(text::Operation),
@ -182,7 +182,7 @@ pub enum Operation {
}, },
} }
#[derive(Clone, Debug, PartialEq, Eq)] #[derive(Clone, Debug, PartialEq)]
pub enum Event { pub enum Event {
Operation(Operation), Operation(Operation),
Edited, Edited,

View file

@ -2,14 +2,14 @@ use crate::{Anchor, BufferSnapshot, TextDimension};
use std::cmp::Ordering; use std::cmp::Ordering;
use std::ops::Range; use std::ops::Range;
#[derive(Copy, Clone, Debug, Eq, PartialEq)] #[derive(Copy, Clone, Debug, PartialEq)]
pub enum SelectionGoal { pub enum SelectionGoal {
None, None,
Column(u32), Column(u32),
ColumnRange { start: u32, end: u32 }, ColumnRange { start: u32, end: u32 },
} }
#[derive(Clone, Debug, Eq, PartialEq)] #[derive(Clone, Debug, PartialEq)]
pub struct Selection<T> { pub struct Selection<T> {
pub id: usize, pub id: usize,
pub start: T, pub start: T,