Skip to content

Commit

Permalink
Ignore description field on ExecuteProcessRequest
Browse files Browse the repository at this point in the history
Ignore the description field for the PartialEq and Hash derivations
of ExecuteProcessRequest
  • Loading branch information
gshuflin committed Jun 20, 2019
1 parent 76d5d5c commit 24ff3bb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/rust/engine/process_execution/src/lib.rs
Expand Up @@ -26,9 +26,11 @@
// Arc<Mutex> can be more clear than needing to grok Orderings:
#![allow(clippy::mutex_atomic)]

#[macro_use]
extern crate derivative;

use boxfuture::BoxFuture;
use bytes::Bytes;
use derivative::Derivative;
use std::collections::{BTreeMap, BTreeSet};
use std::ops::AddAssign;
use std::path::PathBuf;
Expand All @@ -44,7 +46,8 @@ pub mod remote;
///
/// A process to be executed.
///
#[derive(Derivative, Clone, Debug, Eq, Hash, PartialEq)]
#[derive(Derivative, Clone, Debug, Eq)]
#[derivative(PartialEq, Hash)]
pub struct ExecuteProcessRequest {
///
/// The arguments to execute.
Expand All @@ -71,6 +74,7 @@ pub struct ExecuteProcessRequest {

pub timeout: std::time::Duration,

#[derivative(PartialEq = "ignore", Hash = "ignore")]
pub description: String,

///
Expand Down

0 comments on commit 24ff3bb

Please sign in to comment.