diff options
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/sftp.rs | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -17,7 +17,7 @@ commands, forwarding local ports, etc. name = "all" [dependencies] -bitflags = "0.1" +bitflags = "0.7" libc = "0.2" libssh2-sys = { path = "libssh2-sys", version = "0.1.41" } diff --git a/src/sftp.rs b/src/sftp.rs index a56d3b1..0ef291d 100644 --- a/src/sftp.rs +++ b/src/sftp.rs @@ -55,7 +55,7 @@ pub struct FileType { bitflags! { #[doc = "Options that can be used to configure how a file is opened"] - flags OpenFlags: c_ulong { + pub flags OpenFlags: c_ulong { #[doc = "Open the file for reading."] const READ = raw::LIBSSH2_FXF_READ, #[doc = "Open the file for writing. If both this and Read are \ @@ -80,7 +80,7 @@ bitflags! { bitflags! { #[doc = "Options to `Sftp::rename`"] - flags RenameFlags: c_long { + pub 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 \ error if the destination already exists"] |