Skip to content

Commit

Permalink
chore: remove redundant imports
Browse files Browse the repository at this point in the history
  • Loading branch information
iamwacko committed Feb 25, 2024
1 parent 2439fe6 commit 4668857
Show file tree
Hide file tree
Showing 16 changed files with 7 additions and 25 deletions.
1 change: 0 additions & 1 deletion core/src/compile/link.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use synth_gen::prelude::{Generator, GeneratorState};

use std::cell::RefCell;
use std::iter::IntoIterator;
use std::ops::Range;
use std::rc::Rc;

Expand Down
1 change: 0 additions & 1 deletion core/src/compile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
//! into [`Graph`](crate::graph::Graph).
use std::collections::{BTreeMap, BTreeSet};
use std::iter::IntoIterator;

use anyhow::{Context, Result};

Expand Down
2 changes: 0 additions & 2 deletions core/src/graph/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ use sqlx::{encode::IsNull, Encode, Type};
use sqlx::{MySql, Postgres};

use synth_gen::prelude::*;
use synth_gen::value::{Token, Tokenizer};

use crate::compile::{Link, NamespaceCompiler};

use crate::schema::{ChronoValueAndFormat, Namespace};

pub mod prelude;
use prelude::*;
Expand Down
1 change: 0 additions & 1 deletion core/src/graph/series.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::graph::prelude::content::series::SeriesVariant;
use crate::graph::prelude::*;
use crate::schema::content::series::SeriesContent;
use anyhow::Result;
use chrono::{Duration, NaiveDateTime};
use std::f64::consts::PI;
Expand Down
2 changes: 1 addition & 1 deletion core/src/graph/string/format.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::graph::prelude::*;
use anyhow::Result;

use dynfmt::{self, Format as DynFormat};
use dynfmt::Format as DynFormat;

type Formatted = TryOnce<Unwrap<Yield<Result<String, Error>>>>;

Expand Down
2 changes: 1 addition & 1 deletion core/src/schema/content/bool.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::prelude::*;
use std::hash::{Hash, Hasher};
use std::hash::Hasher;

use super::Categorical;

Expand Down
1 change: 0 additions & 1 deletion core/src/schema/content/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ use std::hash::{Hash, Hasher};

use paste::paste;
use serde::{de::IntoDeserializer, Deserialize, Serialize};
use serde_json::Value;

mod r#bool;
pub use self::r#bool::BoolContent;
Expand Down
1 change: 0 additions & 1 deletion core/src/schema/content/number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use super::Categorical;

use crate::graph::number::{RandomF32, RandomI16, RandomI32, RandomU32};
use serde::{
de::{Deserialize, Deserializer},
ser::Serializer,
Serialize,
};
Expand Down
5 changes: 1 addition & 4 deletions core/src/schema/content/object.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
use super::prelude::*;
use serde::{
de::{Deserialize, Deserializer},
ser::Serializer,
};
use serde::ser::Serializer;
use std::borrow::Cow;
use std::collections::BTreeMap;

Expand Down
2 changes: 1 addition & 1 deletion core/src/schema/content/one_of.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(clippy::unconditional_recursion)]

use std::hash::{Hash, Hasher};
use std::hash::Hasher;

use super::prelude::*;

Expand Down
1 change: 0 additions & 1 deletion core/src/schema/content/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ pub(super) type JsonObject = Map<String, Value>;

// std
pub(super) use std::collections::HashMap;
pub(super) use std::convert::TryFrom;
pub(super) use std::fmt::{Display, Formatter};
pub(super) use std::hash::Hash;
pub(super) use std::iter::{FromIterator, Peekable};
Expand Down
3 changes: 0 additions & 3 deletions core/src/schema/content/series.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ use super::prelude::*;
use crate::graph::series::{
CyclicalSeries, IncrementingSeries, PoissonSeries, TimeSeries, ZipSeries,
};
use crate::{Compile, Compiler, Graph};
use anyhow::Result;
use std::convert::TryInto;

#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Hash)]
#[serde(deny_unknown_fields)]
Expand Down
2 changes: 1 addition & 1 deletion core/src/schema/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(clippy::assertions_on_result_states)]
use std::collections::VecDeque;
use std::iter::{Chain, IntoIterator, Once};
use std::iter::{Chain, Once};
use std::str::FromStr;

use anyhow::Result;
Expand Down
2 changes: 1 addition & 1 deletion core/src/schema/namespace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::graph::prelude::OptionalMergeStrategy;
use crate::graph::{Graph, KeyValueOrNothing};

use std::collections::BTreeMap;
use std::{default::Default, iter::FromIterator};
use std::default::Default;

use anyhow::{Context, Result};
use serde::{Deserialize, Serialize};
Expand Down
5 changes: 1 addition & 4 deletions gen/src/generator/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
use std::{
iter::{Extend, FromIterator},
marker::PhantomData,
};
use std::marker::PhantomData;

use crate::{GeneratorState, Never};

Expand Down
1 change: 0 additions & 1 deletion gen/src/value.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//! Custom tokenization for the serde data model.
//!
use std::convert::{TryFrom, TryInto};
use std::marker::PhantomData;

use rand::Rng;
Expand Down

0 comments on commit 4668857

Please sign in to comment.