aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2020-04-04 13:51:08 +0200
committerDaniel Schadt <kingdread@gmx.de>2020-04-04 13:55:20 +0200
commit87eee24f20f9a5bfb1942998e50c0ddf4ab95687 (patch)
treec9e442d7bc8feb7bc7f58396a4dccc863eaac32b
parent4ec62bbac872bbfd95413af2f00c3f4a36c70630 (diff)
downloadevtclib-87eee24f20f9a5bfb1942998e50c0ddf4ab95687.tar.gz
evtclib-87eee24f20f9a5bfb1942998e50c0ddf4ab95687.tar.bz2
evtclib-87eee24f20f9a5bfb1942998e50c0ddf4ab95687.zip
Use num_derive::FromPrimitive without #[macro_use]
-rw-r--r--src/lib.rs2
-rw-r--r--src/raw/types.rs1
-rw-r--r--src/statistics/gamedata.rs1
3 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 931ee61..de0ac85 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -18,8 +18,6 @@
//! module](raw/parser/index.html#buffering))
#![feature(try_trait, stmt_expr_attributes, never_type)]
#[macro_use]
-extern crate num_derive;
-#[macro_use]
extern crate getset;
use thiserror::Error;
diff --git a/src/raw/types.rs b/src/raw/types.rs
index 93a75b7..2fbdabc 100644
--- a/src/raw/types.rs
+++ b/src/raw/types.rs
@@ -1,4 +1,5 @@
use std::{self, fmt};
+use num_derive::FromPrimitive;
/// The "friend or foe" enum.
#[derive(Copy, Clone, Debug, PartialEq, Eq, FromPrimitive)]
diff --git a/src/statistics/gamedata.rs b/src/statistics/gamedata.rs
index 400f070..9b5a492 100644
--- a/src/statistics/gamedata.rs
+++ b/src/statistics/gamedata.rs
@@ -2,6 +2,7 @@
//! some statistics.
use std::{fmt, str::FromStr};
use super::boon::{BoonQueue, BoonType};
+use num_derive::FromPrimitive;
/// Enum containing all bosses with their IDs.
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, FromPrimitive)]