Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #30 from myelin-ai/serde-derive
Browse files Browse the repository at this point in the history
Use serde's derive feature instead of serde-derive
  • Loading branch information
Ruben Schmidmeister authored Dec 17, 2019
2 parents 4addbc3 + fc822eb commit 196e604
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/point.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/polygon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/radians.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/vector.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 196e604

Please sign in to comment.