Skip to content

Commit fef6d87

Browse files
committed
Fix derive_partial_eq_without_eq clippy error
1 parent a942c34 commit fef6d87

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

src/cli/self_update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pub(crate) const NEVER_SELF_UPDATE: bool = true;
8989
#[cfg(not(feature = "no-self-update"))]
9090
pub(crate) const NEVER_SELF_UPDATE: bool = false;
9191

92-
#[derive(Clone, Debug, PartialEq)]
92+
#[derive(Clone, Debug, Eq, PartialEq)]
9393
pub enum SelfUpdateMode {
9494
Enable,
9595
Disable,

src/dist/manifest.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use crate::utils::toml_utils::*;
2424

2525
pub(crate) const SUPPORTED_MANIFEST_VERSIONS: [&str; 1] = ["2"];
2626

27-
#[derive(Clone, Debug, PartialEq)]
27+
#[derive(Clone, Debug, Eq, PartialEq)]
2828
pub struct Manifest {
2929
manifest_version: String,
3030
pub date: String,
@@ -34,25 +34,25 @@ pub struct Manifest {
3434
profiles: HashMap<Profile, Vec<String>>,
3535
}
3636

37-
#[derive(Clone, Debug, PartialEq)]
37+
#[derive(Clone, Debug, Eq, PartialEq)]
3838
pub struct Package {
3939
pub version: String,
4040
pub targets: PackageTargets,
4141
}
4242

43-
#[derive(Clone, Debug, PartialEq)]
43+
#[derive(Clone, Debug, Eq, PartialEq)]
4444
pub enum PackageTargets {
4545
Wildcard(TargetedPackage),
4646
Targeted(HashMap<TargetTriple, TargetedPackage>),
4747
}
4848

49-
#[derive(Clone, Debug, PartialEq)]
49+
#[derive(Clone, Debug, Eq, PartialEq)]
5050
pub struct TargetedPackage {
5151
pub bins: Vec<(CompressionKind, HashedBinary)>,
5252
pub components: Vec<Component>,
5353
}
5454

55-
#[derive(Clone, Copy, Debug, PartialEq)]
55+
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
5656
pub enum CompressionKind {
5757
GZip,
5858
XZ,
@@ -77,7 +77,7 @@ impl CompressionKind {
7777
}
7878
}
7979

80-
#[derive(Clone, Debug, PartialEq)]
80+
#[derive(Clone, Debug, Eq, PartialEq)]
8181
pub struct HashedBinary {
8282
pub url: String,
8383
pub hash: String,

src/dist/manifestation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl Changes {
6161
}
6262
}
6363

64-
#[derive(PartialEq, Debug)]
64+
#[derive(PartialEq, Debug, Eq)]
6565
pub enum UpdateStatus {
6666
Changed,
6767
Unchanged,

src/fallback_settings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use anyhow::{Context, Result};
66

77
use crate::utils::utils;
88

9-
#[derive(Clone, Debug, Deserialize, PartialEq, Default)]
9+
#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Default)]
1010
pub struct FallbackSettings {
1111
pub default_toolchain: Option<String>,
1212
}

src/settings.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use crate::utils::utils;
1515
pub(crate) const SUPPORTED_METADATA_VERSIONS: [&str; 2] = ["2", "12"];
1616
pub(crate) const DEFAULT_METADATA_VERSION: &str = "12";
1717

18-
#[derive(Clone, Debug, PartialEq)]
18+
#[derive(Clone, Debug, Eq, PartialEq)]
1919
pub struct SettingsFile {
2020
path: PathBuf,
2121
cache: RefCell<Option<Settings>>,
@@ -72,7 +72,7 @@ impl SettingsFile {
7272
}
7373
}
7474

75-
#[derive(Clone, Debug, PartialEq)]
75+
#[derive(Clone, Debug, Eq, PartialEq)]
7676
pub struct Settings {
7777
pub version: String,
7878
pub default_host_triple: Option<String>,

tests/mock/clitools.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub struct Config {
5151

5252
// Describes all the features of the mock dist server.
5353
// Building the mock server is slow, so use simple scenario when possible.
54-
#[derive(PartialEq, Copy, Clone)]
54+
#[derive(Copy, Clone, Eq, PartialEq)]
5555
pub enum Scenario {
5656
/// No dist server content
5757
Empty,

0 commit comments

Comments
 (0)