Skip to content

Commit d7ef1f5

Browse files
committed
Fix some doc tests
1 parent ce43ab1 commit d7ef1f5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ impl Config {
214214
/// # Example
215215
///
216216
/// ```
217+
/// # #![allow(unstable)]
217218
/// use git2::Config;
218219
///
219220
/// let cfg = Config::new().unwrap();

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
//! already exist.
2424
//!
2525
//! ```no_run
26+
//! # #![allow(unstable)]
2627
//! use git2::Repository;
2728
//!
2829
//! let path = Path::new("/path/to/a/repo");
@@ -35,6 +36,7 @@
3536
//! ### Opening an existing repository
3637
//!
3738
//! ```no_run
39+
//! # #![allow(unstable)]
3840
//! use git2::Repository;
3941
//!
4042
//! let path = Path::new("/path/to/a/repo");
@@ -47,6 +49,7 @@
4749
//! ### Cloning an existing repository
4850
//!
4951
//! ```no_run
52+
//! # #![allow(unstable)]
5053
//! use git2::Repository;
5154
//!
5255
//! let url = "https://github.com/alexcrichton/git2-rs";

0 commit comments

Comments
 (0)