From 81ab3d0c3e7112b2209a349f6355c346cd1423c0 Mon Sep 17 00:00:00 2001 From: sp3d Date: Thu, 26 May 2016 20:54:54 +0000 Subject: ssh2::FileStat should derive Eq/PartialEq and Clone Copy might constrain the implementation, but these are useful and shouldn't cause any difficulty in the future. --- src/sftp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sftp.rs b/src/sftp.rs index 2fd7240..07251f0 100644 --- a/src/sftp.rs +++ b/src/sftp.rs @@ -31,7 +31,7 @@ pub struct File<'sftp> { /// Metadata information about a remote file. /// /// Fields are not necessarily all provided -#[derive(Debug)] +#[derive(Debug, Clone, Eq, PartialEq)] #[allow(missing_copy_implementations)] pub struct FileStat { /// File size, in bytes of the file. -- cgit v1.2.3