Skip to content

Commit c1cb868

Browse files
committed
fix nightly clippy
1 parent ad0ec7e commit c1cb868

26 files changed

+36
-36
lines changed

asyncgit/src/blame.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use std::{
1414
};
1515

1616
///
17-
#[derive(Hash, Clone, PartialEq)]
17+
#[derive(Hash, Clone, PartialEq, Eq)]
1818
pub struct BlameParams {
1919
/// path to the file to blame
2020
pub file_path: String,

asyncgit/src/commit_files.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type ResultType = Vec<StatusItem>;
1313
struct Request<R, A>(R, A);
1414

1515
///
16-
#[derive(Debug, Copy, Clone, PartialEq)]
16+
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
1717
pub struct CommitFilesParams {
1818
///
1919
pub id: CommitId,

asyncgit/src/diff.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use std::{
1414
};
1515

1616
///
17-
#[derive(Debug, Hash, Clone, PartialEq)]
17+
#[derive(Debug, Hash, Clone, PartialEq, Eq)]
1818
pub enum DiffType {
1919
/// diff two commits
2020
Commits((CommitId, CommitId)),
@@ -27,7 +27,7 @@ pub enum DiffType {
2727
}
2828

2929
///
30-
#[derive(Debug, Hash, Clone, PartialEq)]
30+
#[derive(Debug, Hash, Clone, PartialEq, Eq)]
3131
pub struct DiffParams {
3232
/// path to the file to diff
3333
pub path: String,

asyncgit/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ use std::{
6767
};
6868

6969
/// this type is used to communicate events back through the channel
70-
#[derive(Copy, Clone, Debug, PartialEq)]
70+
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
7171
pub enum AsyncGitNotification {
7272
/// this indicates that no new state was fetched but that a async process finished
7373
FinishUnchanged,

asyncgit/src/progress.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use easy_cast::{Conv, ConvFloat};
44
use std::cmp;
55

66
///
7-
#[derive(Clone, Copy, Default, Debug, PartialEq)]
7+
#[derive(Clone, Copy, Default, Debug, PartialEq, Eq)]
88
pub struct ProgressPercent {
99
/// percent 0..100
1010
pub progress: u8,

asyncgit/src/revlog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use std::{
1515
};
1616

1717
///
18-
#[derive(PartialEq)]
18+
#[derive(PartialEq, Eq)]
1919
pub enum FetchStatus {
2020
/// previous fetch still running
2121
Pending,

asyncgit/src/status.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub struct Status {
2929
}
3030

3131
///
32-
#[derive(Default, Hash, Copy, Clone, PartialEq)]
32+
#[derive(Default, Hash, Copy, Clone, PartialEq, Eq)]
3333
pub struct StatusParams {
3434
tick: u128,
3535
status_type: StatusType,

asyncgit/src/sync/commit_details.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use git2::Signature;
44
use scopetime::scope_time;
55

66
///
7-
#[derive(Debug, PartialEq, Default, Clone)]
7+
#[derive(Debug, PartialEq, Eq, Default, Clone)]
88
pub struct CommitSignature {
99
///
1010
pub name: String,

asyncgit/src/sync/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use super::{repository::repo, RepoPath};
66

77
// see https://git-scm.com/docs/git-config#Documentation/git-config.txt-statusshowUntrackedFiles
88
/// represents the `status.showUntrackedFiles` git config state
9-
#[derive(Hash, Copy, Clone, PartialEq)]
9+
#[derive(Hash, Copy, Clone, PartialEq, Eq)]
1010
pub enum ShowUntrackedFilesConfig {
1111
///
1212
No,

asyncgit/src/sync/cred.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::error::{Error, Result};
77
use git2::CredentialHelper;
88

99
/// basic Authentication Credentials
10-
#[derive(Debug, Clone, Default, PartialEq)]
10+
#[derive(Debug, Clone, Default, PartialEq, Eq)]
1111
pub struct BasicAuthCredential {
1212
///
1313
pub username: Option<String>,

0 commit comments

Comments
 (0)