Skip to content

Commit

Permalink
Only need to declare doc features in one place
Browse files Browse the repository at this point in the history
  • Loading branch information
urschrei committed Sep 3, 2020
1 parent 6ca7736 commit 9cd8b44
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
4 changes: 0 additions & 4 deletions src/conversion/from_geo_types.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// only enables the `doc_cfg` feature when
// the `docsrs` configuration attribute is defined
#[cfg_attr(docsrs, feature(doc_cfg))]

use crate::geo_types;

use crate::geometry;
Expand Down
4 changes: 0 additions & 4 deletions src/conversion/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// only enables the `doc_cfg` feature when
// the `docsrs` configuration attribute is defined
#[cfg_attr(docsrs, feature(doc_cfg))]

use crate::geo_types;
use crate::geo_types::{
Geometry as GtGeometry, GeometryCollection, LineString as GtLineString,
Expand Down
4 changes: 0 additions & 4 deletions src/conversion/to_geo_types.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// only enables the `doc_cfg` feature when
// the `docsrs` configuration attribute is defined
#[cfg_attr(docsrs, feature(doc_cfg))]

use crate::geo_types;

use crate::geometry;
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@
//! implementations which may be useful if you wish to perform this kind of processing yourself and require
//! more granular control over performance and / or memory allocation.

// only enables the `doc_cfg` feature when
// the `docsrs` configuration attribute is defined
#[cfg_attr(docsrs, feature(doc_cfg))]
#[cfg(feature = "geo-types")]
use geo_types;
use serde;
Expand Down

0 comments on commit 9cd8b44

Please sign in to comment.