Skip to content

Commit bde8676

Browse files
Merge pull request #2 from petrochenkov/master
Fix a private-in-public error
2 parents 9219a66 + 6cddf2b commit bde8676

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/lib.rs

+5-6
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@
1010
#![forbid(unsafe_code)]
1111
#![warn(missing_docs)]
1212

13-
extern crate petgraph as pg;
13+
pub extern crate petgraph;
14+
use petgraph as pg;
1415

15-
16-
pub use pg as petgraph;
17-
pub use pg::graph::NodeIndex;
18-
use pg::graph::{DefIndex, IndexType};
16+
pub use petgraph::graph::NodeIndex;
17+
use petgraph::graph::{DefIndex, IndexType};
1918

2019

2120
/// The PetGraph to be used internally within the RoseTree for storing/managing nodes and edges.
@@ -89,7 +88,7 @@ pub struct WalkSiblings<Ix: IndexType> {
8988
pub const ROOT: usize = 0;
9089

9190

92-
impl<N, Ix = DefIndex> RoseTree<N, Ix> where Ix: IndexType {
91+
impl<N, Ix> RoseTree<N, Ix> where Ix: IndexType {
9392

9493
/// Create a new `RoseTree` along with some root node.
9594
/// Returns both the `RoseTree` and an index into the root node in a tuple.

0 commit comments

Comments
 (0)