Skip to content

Commit

Permalink
Try rexporting derive_new
Browse files Browse the repository at this point in the history
  • Loading branch information
colonelpanic8 committed Jun 16, 2023
1 parent b644332 commit 240c80e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/collector/ndarray.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use crate::*;
use ::ndarray;
use boxcars;
pub use derive_new::*;
use lazy_static::lazy_static;
use serde::Serialize;
use std::sync::Arc;

use crate::*;

/// Represents the column headers in the collected data of an [`NDArrayCollector`].
///
/// # Fields
Expand Down Expand Up @@ -599,7 +599,7 @@ where
macro_rules! build_global_feature_adder {
($struct_name:ident, $prop_getter:expr, $( $column_names:expr ),* $(,)?) => {

#[derive(derive_new::new)]
#[derive(new)]
pub struct $struct_name<F> {
_zero: std::marker::PhantomData<F>,
}
Expand Down Expand Up @@ -726,7 +726,7 @@ macro_rules! global_feature_adder {
#[macro_export]
macro_rules! build_player_feature_adder {
($struct_name:ident, $prop_getter:expr, $( $column_names:expr ),* $(,)?) => {
#[derive(derive_new::new)]
#[derive(new)]
pub struct $struct_name<F> {
_zero: std::marker::PhantomData<F>,
}
Expand Down
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,3 @@ pub use crate::constants::*;
pub use crate::error::*;
pub use crate::processor::*;
pub use crate::util::*;

#[macro_use]
extern crate derive_new;

0 comments on commit 240c80e

Please sign in to comment.