Unverified Commit 16fda3a8 authored by John DiSanti's avatar John DiSanti Committed by GitHub
Browse files

Simplify a `Clone` impl (#1418)

parent 53fab07a
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ use std::fmt;
use std::process::Command;
use std::time::SystemTime;

#[derive(Clone)]
pub(crate) struct CommandWithSensitiveArgs<T>(T);

impl<T> CommandWithSensitiveArgs<T>
@@ -53,15 +54,6 @@ where
    }
}

impl<T> Clone for CommandWithSensitiveArgs<T>
where
    T: Clone,
{
    fn clone(&self) -> Self {
        Self(self.0.clone())
    }
}

/// External process credentials provider
///
/// This credentials provider runs a configured external process and parses