From 941c01f7ad8d03821def53f7c024ecaa1cd98983 Mon Sep 17 00:00:00 2001 From: Ruben Schmidmeister Date: Mon, 16 Dec 2019 13:33:50 +0100 Subject: [PATCH] Use serde's derive feature instead of serde-derive --- Cargo.toml | 3 +-- src/point.rs | 2 +- src/polygon.rs | 2 +- src/radians.rs | 2 +- src/vector.rs | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 08499a3..6984900 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,8 +15,7 @@ edition = "2018" license = "MIT/Apache-2.0" [dependencies] -serde = "1.0" -serde_derive = "1.0" +serde = { version = "1.0", features = ["derive"] } itertools = "0.8" [dev-dependencies] diff --git a/src/point.rs b/src/point.rs index 8f79dfb..3887242 100644 --- a/src/point.rs +++ b/src/point.rs @@ -1,5 +1,5 @@ use crate::Vector; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use std::ops::{Add, Sub}; /// A point in space diff --git a/src/polygon.rs b/src/polygon.rs index d844a3f..df8894b 100644 --- a/src/polygon.rs +++ b/src/polygon.rs @@ -5,7 +5,7 @@ use super::*; use crate::ConvexHull; use crate::Intersects; use itertools::Itertools; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; mod builder; diff --git a/src/radians.rs b/src/radians.rs index 08a2e51..8d44ecb 100644 --- a/src/radians.rs +++ b/src/radians.rs @@ -1,4 +1,4 @@ -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use std::error::Error; use std::f64::consts::PI; use std::fmt; diff --git a/src/vector.rs b/src/vector.rs index 42284f6..7b6c508 100644 --- a/src/vector.rs +++ b/src/vector.rs @@ -1,6 +1,6 @@ use crate::radians::Radians; use crate::Point; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use std::ops::{Add, Div, Mul, Sub}; /// A vector