From 62c1e430b26a009c6c035cba4caccfeb19878927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Thu, 26 May 2022 14:03:30 +0200 Subject: [PATCH] Derive Eq when deriving PartialEq There is a clippy lint for this. --- src/repo.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/repo.rs b/src/repo.rs index d020330..e8782f6 100644 --- a/src/repo.rs +++ b/src/repo.rs @@ -7,7 +7,7 @@ use crate::output::*; const WORKTREE_CONFIG_FILE_NAME: &str = "grm.toml"; -#[derive(Debug, Serialize, Deserialize, PartialEq)] +#[derive(Debug, Serialize, Deserialize, PartialEq, Eq)] #[serde(rename_all = "snake_case")] pub enum RemoteType { Ssh, @@ -31,7 +31,7 @@ pub enum GitPushDefaultSetting { Upstream, } -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] pub enum RepoErrorKind { NotFound, Unknown(String),