Skip to content
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

Consistently derive Copy, Clone, Debug, PartialEq, and Eq for types #764

Merged
merged 1 commit into from Nov 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/lib.rs
Expand Up @@ -311,7 +311,7 @@ pub enum RepositoryState {
}

/// An enumeration of the possible directions for a remote.
#[derive(Copy, Clone)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum Direction {
/// Data will be fetched (read) from this remote.
Fetch,
Expand All @@ -321,7 +321,7 @@ pub enum Direction {

/// An enumeration of the operations that can be performed for the `reset`
/// method on a `Repository`.
#[derive(Copy, Clone)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum ResetType {
/// Move the head to the given commit.
Soft,
Expand Down Expand Up @@ -1213,7 +1213,7 @@ impl SubmoduleStatus {
/// These values represent settings for the `submodule.$name.ignore`
/// configuration value which says how deeply to look at the working
/// directory when getting the submodule status.
#[derive(Debug)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum SubmoduleIgnore {
/// Use the submodule's configuration
Unspecified,
Expand All @@ -1233,7 +1233,7 @@ pub enum SubmoduleIgnore {
/// configuration value which says how to handle `git submodule update`
/// for this submodule. The value is usually set in the ".gitmodules"
/// file and copied to ".git/config" when the submodule is initialized.
#[derive(Debug)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum SubmoduleUpdate {
/// The default; when a submodule is updated, checkout the new detached
/// HEAD to the submodule directory.
Expand Down Expand Up @@ -1322,7 +1322,7 @@ impl CheckoutNotificationType {
}

/// Possible output formats for diff data
#[derive(Copy, Clone)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum DiffFormat {
/// full git diff
Patch,
Expand Down Expand Up @@ -1386,7 +1386,7 @@ pub enum FetchPrune {
}

#[allow(missing_docs)]
#[derive(Debug)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum StashApplyProgress {
/// None
None,
Expand Down