Skip to content

Commit 6b15a7c

Browse files
Merge pull request #9 from petrochenkov/master
Fix a private-in-public error
2 parents c15ed14 + 48682bb commit 6b15a7c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
#![forbid(unsafe_code)]
1515
#![warn(missing_docs)]
1616

17-
extern crate petgraph as pg;
17+
pub extern crate petgraph;
18+
use petgraph as pg;
1819

19-
use pg::graph::{DefIndex, GraphIndex, IndexType};
20+
use petgraph::graph::{DefIndex, GraphIndex, IndexType};
2021
use std::marker::PhantomData;
2122
use std::ops::{Index, IndexMut};
2223

23-
pub use pg as petgraph;
24-
pub use pg::graph::{EdgeIndex, NodeIndex, EdgeWeightsMut, NodeWeightsMut};
24+
pub use petgraph::graph::{EdgeIndex, NodeIndex, EdgeWeightsMut, NodeWeightsMut};
2525
pub use walker::Walker;
2626

2727
pub mod walker;
@@ -96,7 +96,7 @@ pub type RecursiveWalk<N, E, Ix, F> = walker::Recursive<Dag<N, E, Ix>, Ix, F>;
9696
pub struct WouldCycle<E>(pub E);
9797

9898

99-
impl<N, E, Ix = DefIndex> Dag<N, E, Ix> where Ix: IndexType {
99+
impl<N, E, Ix> Dag<N, E, Ix> where Ix: IndexType {
100100

101101
/// Create a new, empty `Dag`.
102102
pub fn new() -> Self {

src/walker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33

44
use ::{EdgeIndex, NodeIndex};
5-
use pg::graph::IndexType;
5+
use petgraph::graph::IndexType;
66
use std::marker::PhantomData;
77
use std::ops::Index;
88

0 commit comments

Comments
 (0)