diff options
author | Alex Crichton <alex@alexcrichton.com> | 2014-12-15 08:25:57 -0800 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2014-12-15 08:25:57 -0800 |
commit | 43996526768a6cfce9c2c3111210054f0c75f406 (patch) | |
tree | 0e40ccb494af84ac2efc7105ed2ebd0f230f5bdc /src | |
parent | 5319ce3a7dc4d417af9d94b8671c41ad43018b10 (diff) | |
download | ssh2-rs-43996526768a6cfce9c2c3111210054f0c75f406.zip |
Update to rust master
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 2 | ||||
-rw-r--r-- | src/sftp.rs | 2 |
2 files changed, 1 insertions, 3 deletions
@@ -131,7 +131,7 @@ pub fn init() { unsafe { INIT.doit(|| { assert_eq!(raw::libssh2_init(0), 0); - rt::at_exit(proc() { + rt::at_exit(|| { raw::libssh2_exit(); }); }) diff --git a/src/sftp.rs b/src/sftp.rs index d79de74..173b755 100644 --- a/src/sftp.rs +++ b/src/sftp.rs @@ -49,7 +49,6 @@ pub struct FileStat { bitflags! { #[doc = "Options that can be used to configure how a file is opened"] - #[deriving(Copy)] flags OpenFlags: c_ulong { #[doc = "Open the file for reading."] const READ = raw::LIBSSH2_FXF_READ, @@ -75,7 +74,6 @@ bitflags! { bitflags! { #[doc = "Options to `Sftp::rename`"] - #[deriving(Copy)] flags RenameFlags: c_long { #[doc = "In a rename operation, overwrite the destination if it \ already exists. If this flag is not present then it is an \ |