diff options
author | Benjamin Sago <ogham@bsago.me> | 2015-04-04 00:14:49 +0200 |
---|---|---|
committer | Benjamin Sago <ogham@bsago.me> | 2015-04-04 00:14:56 +0200 |
commit | f88556814566dbc1c1cde626cb8d5933c6db5b92 (patch) | |
tree | 50ed3fc800e79c0945e0323836d1dcabe3b8658c /src/feature | |
parent | 8d066994e75f1c9f30ae6a792e0a399763d74779 (diff) |
Upgrade to latest Rust
Still missing a few Beta features, but it compiles!
- Copy requires Clone
- current_dir returns a Path now
- num_cpus moved to a crate
Diffstat (limited to 'src/feature')
-rw-r--r-- | src/feature/xattr_darwin.rs | 2 | ||||
-rw-r--r-- | src/feature/xattr_linux.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/xattr_darwin.rs b/src/feature/xattr_darwin.rs index 4d4021a..d3f3428 100644 --- a/src/feature/xattr_darwin.rs +++ b/src/feature/xattr_darwin.rs @@ -23,7 +23,7 @@ extern "C" { } /// Attributes which can be passed to `Attribute::list_with_flags` -#[derive(Copy)] +#[derive(Copy, Clone)] pub enum ListFlags { /// Don't follow symbolic links NoFollow = XATTR_NOFOLLOW as isize, diff --git a/src/feature/xattr_linux.rs b/src/feature/xattr_linux.rs index 0aef938..06496ea 100644 --- a/src/feature/xattr_linux.rs +++ b/src/feature/xattr_linux.rs @@ -20,7 +20,7 @@ extern "C" { } /// Attributes which can be passed to `Attribute::list_with_flags` -#[derive(Copy)] +#[derive(Copy, Clone)] pub enum FollowSymlinks { Yes, No |