summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-12-15 08:25:57 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-12-15 08:25:57 -0800
commit43996526768a6cfce9c2c3111210054f0c75f406 (patch)
tree0e40ccb494af84ac2efc7105ed2ebd0f230f5bdc /src
parent5319ce3a7dc4d417af9d94b8671c41ad43018b10 (diff)
downloadssh2-rs-43996526768a6cfce9c2c3111210054f0c75f406.zip
Update to rust master
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
-rw-r--r--src/sftp.rs2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index db3c428..c50e83a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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 \