Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a private-in-public error #2

Merged
merged 1 commit into from
Sep 4, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -89,7 +88,7 @@ pub struct WalkSiblings<Ix: IndexType> {
pub const ROOT: usize = 0;


impl<N, Ix = DefIndex> RoseTree<N, Ix> where Ix: IndexType {
impl<N, Ix> RoseTree<N, Ix> 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.
Expand Down