Skip to content

fix clippy::derive_partial_eq_without_eq #1241

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions asyncgit/src/sync/rebase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub fn conflict_free_rebase(
}

///
#[derive(PartialEq, Debug)]
#[derive(PartialEq, Eq, Debug)]
pub enum RebaseState {
///
Finished,
Expand Down Expand Up @@ -144,7 +144,7 @@ pub fn continue_rebase(
}

///
#[derive(PartialEq, Debug)]
#[derive(PartialEq, Eq, Debug)]
pub struct RebaseProgress {
///
pub steps: usize,
Expand Down
4 changes: 2 additions & 2 deletions asyncgit/src/sync/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use std::path::Path;
use super::{RepoPath, ShowUntrackedFilesConfig};

///
#[derive(Copy, Clone, Hash, PartialEq, Debug)]
#[derive(Copy, Clone, Hash, PartialEq, Eq, Debug)]
pub enum StatusItemType {
///
New,
Expand Down Expand Up @@ -59,7 +59,7 @@ impl From<Delta> for StatusItemType {
}

///
#[derive(Clone, Hash, PartialEq, Debug)]
#[derive(Clone, Hash, PartialEq, Eq, Debug)]
pub struct StatusItem {
///
pub path: String,
Expand Down
2 changes: 1 addition & 1 deletion asyncgit/src/sync/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use std::{
};

///
#[derive(PartialEq, Debug, Clone)]
#[derive(PartialEq, Eq, Debug, Clone)]
pub struct Head {
///
pub name: String,
Expand Down
4 changes: 2 additions & 2 deletions filetreelist/src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ impl TreeItemInfo {
}

/// attribute used to indicate the collapse/expand state of a path item
#[derive(PartialEq, Debug, Copy, Clone)]
#[derive(PartialEq, Eq, Debug, Copy, Clone)]
pub struct PathCollapsed(pub bool);

/// `FileTreeItem` can be of two kinds
#[derive(PartialEq, Debug, Clone)]
#[derive(PartialEq, Eq, Debug, Clone)]
pub enum FileTreeItemKind {
Path(PathCollapsed),
File,
Expand Down
4 changes: 2 additions & 2 deletions src/components/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ pub enum Direction {
}

///
#[derive(PartialEq)]
#[derive(PartialEq, Eq)]
pub enum CommandBlocking {
Blocking,
PassingOn,
Expand Down Expand Up @@ -220,7 +220,7 @@ pub trait DrawableComponent {
}

///
#[derive(PartialEq)]
#[derive(PartialEq, Eq)]
pub enum EventState {
Consumed,
NotConsumed,
Expand Down
2 changes: 1 addition & 1 deletion src/components/options_popup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use tui::{
Frame,
};

#[derive(Clone, Copy, PartialEq)]
#[derive(Clone, Copy, PartialEq, Eq)]
pub enum AppOption {
StatusShowUntracked,
DiffIgnoreWhitespaces,
Expand Down
2 changes: 1 addition & 1 deletion src/components/textinput.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use tui::{
Frame,
};

#[derive(PartialEq)]
#[derive(PartialEq, Eq)]
pub enum InputType {
Singleline,
Multiline,
Expand Down
4 changes: 2 additions & 2 deletions src/components/utils/filetree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ impl TreeItemInfo {
}

/// attribute used to indicate the collapse/expand state of a path item
#[derive(PartialEq, Debug, Copy, Clone)]
#[derive(PartialEq, Eq, Debug, Copy, Clone)]
pub struct PathCollapsed(pub bool);

/// `FileTreeItem` can be of two kinds
#[derive(PartialEq, Debug, Clone)]
#[derive(PartialEq, Eq, Debug, Clone)]
pub enum FileTreeItemKind {
Path(PathCollapsed),
File(StatusItem),
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ pub enum QueueEvent {
InputEvent(InputEvent),
}

#[derive(Clone, Copy, Debug, PartialEq)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum SyntaxHighlightProgress {
Progress,
Done,
}

#[derive(Clone, Copy, Debug, PartialEq)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum AsyncAppNotification {
///
SyntaxHighlighting(SyntaxHighlightProgress),
Expand Down
4 changes: 2 additions & 2 deletions src/tabs/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use tui::{
};

/// what part of the screen is focused
#[derive(PartialEq)]
#[derive(PartialEq, Eq)]
enum Focus {
WorkDir,
Diff,
Expand All @@ -51,7 +51,7 @@ impl Focus {
}

/// which target are we showing a diff against
#[derive(PartialEq, Copy, Clone)]
#[derive(PartialEq, Eq, Copy, Clone)]
enum DiffTarget {
Stage,
WorkingDir,
Expand Down