Skip to content

Fix a private-in-public error #9

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

Merged
merged 1 commit into from
Sep 3, 2016
Merged
Show file tree
Hide file tree
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
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
#![forbid(unsafe_code)]
#![warn(missing_docs)]

extern crate petgraph as pg;
pub extern crate petgraph;
use petgraph as pg;

use pg::graph::{DefIndex, GraphIndex, IndexType};
use petgraph::graph::{DefIndex, GraphIndex, IndexType};
use std::marker::PhantomData;
use std::ops::{Index, IndexMut};

pub use pg as petgraph;
pub use pg::graph::{EdgeIndex, NodeIndex, EdgeWeightsMut, NodeWeightsMut};
pub use petgraph::graph::{EdgeIndex, NodeIndex, EdgeWeightsMut, NodeWeightsMut};
pub use walker::Walker;

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


impl<N, E, Ix = DefIndex> Dag<N, E, Ix> where Ix: IndexType {
impl<N, E, Ix> Dag<N, E, Ix> where Ix: IndexType {

/// Create a new, empty `Dag`.
pub fn new() -> Self {
Expand Down
2 changes: 1 addition & 1 deletion src/walker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


use ::{EdgeIndex, NodeIndex};
use pg::graph::IndexType;
use petgraph::graph::IndexType;
use std::marker::PhantomData;
use std::ops::Index;

Expand Down