From 6cddf2be632d47ee797d8e15565abc17a696f6da Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Sun, 4 Sep 2016 16:47:06 +0300 Subject: [PATCH] Fix a private-in-public error --- src/lib.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 02b8b5b..10a4bea 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,12 +10,11 @@ #![forbid(unsafe_code)] #![warn(missing_docs)] -extern crate petgraph as pg; +pub extern crate petgraph; +use petgraph as pg; - -pub use pg as petgraph; -pub use pg::graph::NodeIndex; -use pg::graph::{DefIndex, IndexType}; +pub use petgraph::graph::NodeIndex; +use petgraph::graph::{DefIndex, IndexType}; /// The PetGraph to be used internally within the RoseTree for storing/managing nodes and edges. @@ -89,7 +88,7 @@ pub struct WalkSiblings { pub const ROOT: usize = 0; -impl RoseTree where Ix: IndexType { +impl RoseTree where Ix: IndexType { /// Create a new `RoseTree` along with some root node. /// Returns both the `RoseTree` and an index into the root node in a tuple.