Skip to content

Commit

Permalink
format examples with +nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Apr 27, 2022
1 parent 3758f0b commit cc7ce39
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
5 changes: 0 additions & 5 deletions src/geo_types_from_wkt.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
//! This module provides conversions between WKT primitives and [`geo_types`] primitives.
//!
//! See the [`std::convert::From`] and [`std::convert::TryFrom`] impls on individual [`crate::types`] and [`Wkt`] for details.
//!
//!
//!
//!
//!
// Copyright 2014-2018 The GeoRust Developers
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
6 changes: 1 addition & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
//! use wkt::Wkt;
//! let point: Wkt<f64> = Wkt::from_str("POINT(10 20)").unwrap();
//! ```
//!
#![cfg_attr(feature = "geo-types", doc = "```")]
#![cfg_attr(not(feature = "geo-types"), doc = "```ignore")]
//! // Convert to a geo_types primitive from a Wkt struct
Expand All @@ -42,7 +41,7 @@
//! let converted: geo_types::Point<f64> = point.try_into().unwrap();
//! assert_eq!(g_point, converted);
//! ```
//!
//!
//! ## Direct Access to the `item` Field
//! If you wish to work directly with one of the WKT [`types`] you can match on the `item` field
//! ```
Expand All @@ -58,9 +57,6 @@
//! }
//! _ => unreachable!(),
//! };
//!
//!
//!
use std::default::Default;
use std::fmt;
use std::str::FromStr;
Expand Down
2 changes: 0 additions & 2 deletions src/to_wkt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ where
fn to_wkt(&self) -> Wkt<T>;

/// Serialize as a WKT string
///
#[cfg_attr(feature = "geo-types", doc = "```")]
#[cfg_attr(not(feature = "geo-types"), doc = "```ignore")]
/// // This example requires the geo-types feature (on by default).
Expand All @@ -25,7 +24,6 @@ where
}

/// Write a WKT string to a [`File`](std::fs::File), or anything else that implements [`Write`](std::io::Write).
///
#[cfg_attr(feature = "geo-types", doc = "```")]
#[cfg_attr(not(feature = "geo-types"), doc = "```ignore")]
/// // This example requires the geo-types feature (on by default).
Expand Down

0 comments on commit cc7ce39

Please sign in to comment.