From cc7ce391a91a4a2635ae470e634a36598a044310 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Wed, 27 Apr 2022 09:24:14 -0700 Subject: [PATCH] format examples with +nightly --- src/geo_types_from_wkt.rs | 5 ----- src/lib.rs | 6 +----- src/to_wkt.rs | 2 -- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/geo_types_from_wkt.rs b/src/geo_types_from_wkt.rs index 0d78413..a23d3bd 100644 --- a/src/geo_types_from_wkt.rs +++ b/src/geo_types_from_wkt.rs @@ -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"); diff --git a/src/lib.rs b/src/lib.rs index 24afd63..ce37b41 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,7 +27,6 @@ //! use wkt::Wkt; //! let point: Wkt = 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 @@ -42,7 +41,7 @@ //! let converted: geo_types::Point = 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 //! ``` @@ -58,9 +57,6 @@ //! } //! _ => unreachable!(), //! }; -//! -//! -//! use std::default::Default; use std::fmt; use std::str::FromStr; diff --git a/src/to_wkt.rs b/src/to_wkt.rs index cbbd66b..be6c8b3 100644 --- a/src/to_wkt.rs +++ b/src/to_wkt.rs @@ -12,7 +12,6 @@ where fn to_wkt(&self) -> Wkt; /// 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). @@ -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).