@@ -17,7 +17,7 @@ static RESERVED_NAMES: &[&str] = &[
1717pub fn load_table_names (
1818 database_url : & str ,
1919 schema_name : Option < & str > ,
20- ) -> Result < Vec < TableName > , Box < Error > > {
20+ ) -> Result < Vec < TableName > , Box < dyn Error > > {
2121 let connection = InferConnection :: establish ( database_url) ?;
2222
2323 match connection {
@@ -33,7 +33,7 @@ pub fn load_table_names(
3333fn get_column_information (
3434 conn : & InferConnection ,
3535 table : & TableName ,
36- ) -> Result < Vec < ColumnInformation > , Box < Error > > {
36+ ) -> Result < Vec < ColumnInformation > , Box < dyn Error > > {
3737 let column_info = match * conn {
3838 #[ cfg( feature = "sqlite" ) ]
3939 InferConnection :: Sqlite ( ref c) => super :: sqlite:: get_table_data ( c, table) ,
@@ -52,7 +52,7 @@ fn get_column_information(
5252fn determine_column_type (
5353 attr : & ColumnInformation ,
5454 conn : & InferConnection ,
55- ) -> Result < ColumnType , Box < Error > > {
55+ ) -> Result < ColumnType , Box < dyn Error > > {
5656 match * conn {
5757 #[ cfg( feature = "sqlite" ) ]
5858 InferConnection :: Sqlite ( _) => super :: sqlite:: determine_column_type ( attr) ,
@@ -66,7 +66,7 @@ fn determine_column_type(
6666pub ( crate ) fn get_primary_keys (
6767 conn : & InferConnection ,
6868 table : & TableName ,
69- ) -> Result < Vec < String > , Box < Error > > {
69+ ) -> Result < Vec < String > , Box < dyn Error > > {
7070 let primary_keys: Vec < String > = match * conn {
7171 #[ cfg( feature = "sqlite" ) ]
7272 InferConnection :: Sqlite ( ref c) => super :: sqlite:: get_primary_keys ( c, table) ,
@@ -90,7 +90,7 @@ pub(crate) fn get_primary_keys(
9090pub fn load_foreign_key_constraints (
9191 database_url : & str ,
9292 schema_name : Option < & str > ,
93- ) -> Result < Vec < ForeignKeyConstraint > , Box < Error > > {
93+ ) -> Result < Vec < ForeignKeyConstraint > , Box < dyn Error > > {
9494 let connection = InferConnection :: establish ( database_url) ?;
9595
9696 let constraints = match connection {
@@ -129,7 +129,7 @@ macro_rules! doc_comment {
129129 } ;
130130}
131131
132- pub fn load_table_data ( database_url : & str , name : TableName ) -> Result < TableData , Box < Error > > {
132+ pub fn load_table_data ( database_url : & str , name : TableName ) -> Result < TableData , Box < dyn Error > > {
133133 let connection = InferConnection :: establish ( database_url) ?;
134134 let docs = doc_comment ! (
135135 "Representation of the `{}` table.
@@ -175,7 +175,7 @@ pub fn load_table_data(database_url: &str, name: TableName) -> Result<TableData,
175175 rust_name,
176176 } )
177177 } )
178- . collect :: < Result < _ , Box < Error > > > ( ) ?;
178+ . collect :: < Result < _ , Box < dyn Error > > > ( ) ?;
179179
180180 Ok ( TableData {
181181 name,
0 commit comments