|
15 | 15 | //! |
16 | 16 | //! ```toml |
17 | 17 | //! [dependencies] |
18 | | -//! petgraph-graphml = "2.0.0" |
| 18 | +//! petgraph-graphml = "2.0.1" |
19 | 19 | //! ``` |
20 | 20 | //! |
21 | 21 | //! # Example |
22 | 22 | //! |
23 | 23 | //! For a simple graph like  this is the generated GraphML output. |
24 | 24 | //! |
25 | 25 | //! ``` |
26 | | -//! # extern crate petgraph; |
27 | | -//! # extern crate petgraph_graphml; |
28 | 26 | //! # use petgraph::Graph; |
29 | 27 | //! # use petgraph_graphml::GraphMl; |
30 | 28 | //! # fn make_graph() -> Graph<u32, ()> { |
|
85 | 83 | unused_qualifications, |
86 | 84 | variant_size_differences |
87 | 85 | )] |
88 | | -#![doc(html_root_url = "https://docs.rs/petgraph-graphml/2.0.0")] |
89 | | - |
90 | | -extern crate petgraph; |
91 | | -extern crate xml; |
| 86 | +#![doc(html_root_url = "https://docs.rs/petgraph-graphml/2.0.1")] |
92 | 87 |
|
93 | 88 | use petgraph::visit::{ |
94 | 89 | EdgeRef, GraphProp, IntoEdgeReferences, IntoNodeReferences, NodeIndexable, NodeRef, |
@@ -201,8 +196,6 @@ where |
201 | 196 | /// It will create two attributes "str attr" and "int attr" containing the string and integer part. |
202 | 197 | /// |
203 | 198 | /// ``` |
204 | | - /// # extern crate petgraph; |
205 | | - /// # extern crate petgraph_graphml; |
206 | 199 | /// # use petgraph::Graph; |
207 | 200 | /// # use petgraph_graphml::GraphMl; |
208 | 201 | /// # fn make_graph() -> Graph<(), (String, u32)> { |
@@ -255,8 +248,6 @@ where |
255 | 248 | /// It will create two attributes "str attr" and "int attr" containing the string and integer part. |
256 | 249 | /// |
257 | 250 | /// ``` |
258 | | - /// # extern crate petgraph; |
259 | | - /// # extern crate petgraph_graphml; |
260 | 251 | /// # use petgraph::Graph; |
261 | 252 | /// # use petgraph_graphml::GraphMl; |
262 | 253 | /// # fn make_graph() -> Graph<(String, u32), ()> { |
@@ -413,7 +404,7 @@ where |
413 | 404 | G: IntoEdgeReferences, |
414 | 405 | G: IntoNodeReferences, |
415 | 406 | { |
416 | | - fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { |
| 407 | + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
417 | 408 | f.debug_struct("GraphMl") |
418 | 409 | .field("graph", &self.graph) |
419 | 410 | .field("pretty_print", &self.pretty_print) |
|
0 commit comments