Skip to content

Commit

Permalink
chore: remove some redundant imports
Browse files Browse the repository at this point in the history
  • Loading branch information
iamwacko committed Feb 25, 2024
1 parent 48c3404 commit 2439fe6
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 15 deletions.
1 change: 0 additions & 1 deletion core/src/compile/state.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use anyhow::Result;

use std::collections::{BTreeMap, BTreeSet};
use std::iter::FromIterator;

use synth_gen::prelude::*;

Expand Down
2 changes: 0 additions & 2 deletions gen/src/generator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1141,8 +1141,6 @@ where
pub mod tests {
use super::*;

use crate::Never;

use rand::rngs::ThreadRng;

#[inline]
Expand Down
2 changes: 1 addition & 1 deletion synth/src/cli/csv/headers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ mod tests {
use super::*;
use synth_core::schema::{
number_content, BoolContent, FieldRef, NullContent, NumberContent, OneOfContent, RangeStep,
SameAsContent, VariantContent,
VariantContent,
};

use std::collections::BTreeMap;
Expand Down
1 change: 0 additions & 1 deletion synth/src/cli/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use crate::cli::postgres::PostgresExportStrategy;
use anyhow::{Context, Result};

use std::cell::RefCell;
use std::convert::TryFrom;
use std::io::Write;
use std::path::PathBuf;

Expand Down
1 change: 0 additions & 1 deletion synth/src/cli/import.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::convert::TryFrom;
use std::path::PathBuf;

use anyhow::Result;
Expand Down
1 change: 0 additions & 1 deletion synth/src/cli/import_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use async_std::task;
use log::debug;
use serde_json::Value;
use sqlx::{Executor, Row};
use std::convert::TryFrom;
use synth_core::graph::json::synth_val_to_json;
use synth_core::schema::content::number_content::U64;
use synth_core::schema::{
Expand Down
2 changes: 0 additions & 2 deletions synth/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ use anyhow::{Context, Result};
use rand::RngCore;
use serde::Serialize;
use std::collections::HashMap;
use std::convert::{TryFrom, TryInto};
use std::io::Write;
use std::iter::FromIterator;
use std::path::PathBuf;
use structopt::clap::AppSettings;
use structopt::StructOpt;
Expand Down
1 change: 0 additions & 1 deletion synth/src/cli/telemetry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use owo_colors::OwoColorize;

use std::cell::RefCell;
use std::collections::hash_map::DefaultHasher;
use std::convert::TryFrom;
use std::future::Future;
use std::hash::{Hash, Hasher};
use std::io::{self, BufRead, Read, Write};
Expand Down
2 changes: 0 additions & 2 deletions synth/src/datasource/mysql_datasource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ use rust_decimal::Decimal;
use sqlx::mysql::{MySqlColumn, MySqlPoolOptions, MySqlRow};
use sqlx::{Column, MySql, Pool, Row, TypeInfo};
use std::collections::BTreeMap;
use std::convert::TryFrom;
use std::prelude::rust_2015::Result::Ok;
use synth_core::schema::number_content::{F64, I64, U64};
use synth_core::schema::{
ChronoValueType, DateTimeContent, NumberContent, RangeStep, RegexContent, StringContent,
Expand Down
1 change: 0 additions & 1 deletion synth/src/datasource/postgres_datasource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use rust_decimal::Decimal;
use sqlx::postgres::{PgColumn, PgPoolOptions, PgRow, PgTypeInfo, PgTypeKind};
use sqlx::{Column, Executor, Pool, Postgres, Row, TypeInfo};
use std::collections::BTreeMap;
use std::convert::TryFrom;
use synth_core::schema::number_content::{F32, F64, I16, I32, I64};
use synth_core::schema::{
ArrayContent, BoolContent, Categorical, ChronoValue, ChronoValueAndFormat, ChronoValueType,
Expand Down
1 change: 0 additions & 1 deletion synth/src/datasource/relational_datasource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use futures::future::join_all;
use sqlx::{
query::Query, Arguments, Connection, Database, Encode, Executor, IntoArguments, Pool, Type,
};
use std::convert::TryFrom;
use synth_core::{Content, Value};
use synth_gen::value::Number;

Expand Down
1 change: 0 additions & 1 deletion synth/src/sampler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use anyhow::Result;
use indicatif::{ProgressBar, ProgressStyle};
use rand::SeedableRng;
use std::collections::BTreeMap;
use std::convert::TryFrom;
use synth_core::graph::json::synth_val_to_json;
use synth_core::{Graph, Namespace, Value};
use synth_gen::prelude::*;
Expand Down

0 comments on commit 2439fe6

Please sign in to comment.