summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsp3d <sp3d@github>2016-05-26 20:54:54 +0000
committersp3d <sp3d@github>2016-05-26 20:54:54 +0000
commit81ab3d0c3e7112b2209a349f6355c346cd1423c0 (patch)
treef83c068bf00dcf2c90801f0cf14f2975514acabd /src
parent136e77f9e9e43f956200fb7d5d8f7e119cde7005 (diff)
downloadssh2-rs-81ab3d0c3e7112b2209a349f6355c346cd1423c0.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/sftp.rs2
1 files changed, 1 insertions, 1 deletions
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.