Skip to content

Commit 9fa1615

Browse files
committed
docs: remove quick_collection from examples
1 parent 0d882cb commit 9fa1615

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ writer.write(&kml).unwrap();
6666

6767
```rust
6868
use geo_types::{self, GeometryCollection};
69-
use kml::{quick_collection, Kml, types::Point};
69+
use kml::{Kml, types::Point};
7070

7171
let kml_point = Point::new(1., 1., None);
7272
// Convert into geo_types primitives
@@ -87,8 +87,7 @@ let kml_folder_str = r#"
8787
</Folder>"#;
8888
let kml_folder: Kml<f64> = kml_folder_str.parse().unwrap();
8989

90-
// Use the quick_collection helper to convert Kml to a geo_types::GeometryCollection
91-
let geom_coll: GeometryCollection<f64> = quick_collection(kml_folder).unwrap();
90+
let geom_coll: GeometryCollection<f64> = kml_folder.try_into().unwrap();
9291
```
9392

9493
## Code of Conduct

src/lib.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
//! ```
6868
//! # #[cfg(feature = "geo-types")] {
6969
//! use geo_types::{self, GeometryCollection};
70-
//! use kml::{quick_collection, Kml, types::Point};
70+
//! use kml::{Kml, types::Point};
7171
//!
7272
//! let kml_point = Point::new(1., 1., None);
7373
//! // Convert into geo_types primitives
@@ -88,8 +88,7 @@
8888
//! </Folder>"#;
8989
//! let kml_folder: Kml<f64> = kml_folder_str.parse().unwrap();
9090
//!
91-
//! // Use the quick_collection helper to convert Kml to a geo_types::GeometryCollection
92-
//! let geom_coll: GeometryCollection<f64> = quick_collection(kml_folder).unwrap();
91+
//! let geom_coll: GeometryCollection<f64> = kml_folder.try_into().unwrap();
9392
//! # }
9493
//! ```
9594

0 commit comments

Comments
 (0)