Skip to content

Commit 1265fd2

Browse files
committed
Fix style nit-picks
1 parent 6eb3e4f commit 1265fd2

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

diesel_infer_schema/src/codegen.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use data_structures::ColumnInformation;
66
use inference::{establish_connection, get_table_data, determine_column_type,
77
get_primary_keys, load_table_names, InferConnection};
88

9-
109
pub fn derive_infer_table_from_schema(database_url: &str, table_name: &str)
1110
-> Result<quote::Tokens, Box<Error>>
1211
{
@@ -85,7 +84,7 @@ fn column_def_tokens(
8584
.map(syn::PathSegment::from)
8685
.collect();
8786
syn::Path { global: false, segments: path_segments }
88-
}else{
87+
} else {
8988
let path_segments = column_type.path
9089
.into_iter()
9190
.map(syn::PathSegment::from)

diesel_infer_schema/src/inference.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@ use diesel::pg::PgConnection;
77
use diesel::sqlite::SqliteConnection;
88
use data_structures::{ColumnInformation, ColumnType};
99

10-
11-
1210
pub enum InferConnection {
1311
#[cfg(feature = "sqlite")]
1412
Sqlite(SqliteConnection),
1513
#[cfg(feature = "postgres")]
1614
Pg(PgConnection),
1715
}
1816

19-
2017
pub fn load_table_names(database_url: &str, schema_name: Option<&str>)
2118
-> Result<Vec<String>, Box<Error>>
2219
{

0 commit comments

Comments
 (0)