Skip to content

Commit 9ea6ec4

Browse files
committed
Fix for rust commit 3dcd2157403163789aaf21a9ab3c4d30a7c6494d 'Switch to purely namespaced enums'
1 parent b384af4 commit 9ea6ec4

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

libgit2-sys/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
#![feature(phase)]
1+
#![feature(globs, phase)]
22
#![allow(non_camel_case_types)]
33

44
extern crate libc;
55
extern crate "libssh2-sys" as libssh2;
66
#[cfg(unix)] extern crate "openssl-sys" as openssl;
77
#[cfg(unix)] extern crate "libz-sys" as libz;
88

9+
pub use git_ref_t::*;
10+
pub use git_branch_t::*;
11+
912
use libc::{c_int, c_char, c_uint, size_t, c_uchar, c_void, c_ushort};
1013

1114
pub const GIT_OID_RAWSZ: uint = 20;

src/lib.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
//! source `Repository`, to ensure that they do not outlive the repository
6464
//! itself.
6565
66-
#![feature(macro_rules, unsafe_destructor)]
66+
#![feature(globs, macro_rules, unsafe_destructor)]
6767
#![deny(missing_docs)]
6868

6969
extern crate libc;
@@ -78,6 +78,14 @@ use std::rt;
7878
use std::str;
7979
use std::sync::{Once, ONCE_INIT};
8080

81+
pub use BranchType::*;
82+
pub use ConfigLevel::*;
83+
pub use Direction::*;
84+
pub use ErrorCode::*;
85+
pub use ObjectType::*;
86+
pub use RepositoryState::*;
87+
pub use ResetType::*;
88+
8189
pub use blob::Blob;
8290
pub use branch::{Branch, Branches};
8391
pub use buf::Buf;

0 commit comments

Comments
 (0)