Skip to content

Commit 4373eff

Browse files
committed
Remove back compat reexport
1 parent 7d07e61 commit 4373eff

4 files changed

Lines changed: 8 additions & 9 deletions

File tree

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ use std::time::Duration;
6767
#[cfg(any(feature = "unix_socket", all(unix, feature = "nightly")))]
6868
use std::path::PathBuf;
6969

70-
// FIXME remove in 0.12
71-
pub use transaction::{Transaction, IsolationLevel};
72-
7370
use error::{Error, ConnectError, SqlState, DbError};
7471
use io::{StreamWrapper, NegotiateSsl};
7572
use message::{Frontend, Backend, RowDescriptionEntry};
@@ -79,6 +76,7 @@ use rows::{Rows, LazyRows};
7976
use stmt::{Statement, Column};
8077
use types::{IsNull, Kind, Type, SessionInfo, Oid, Other, WrongType, ToSql, FromSql, Field};
8178
use url::Url;
79+
use transaction::{Transaction, IsolationLevel};
8280

8381
#[macro_use]
8482
mod macros;

src/rows.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ use std::fmt;
77
use std::ops::Deref;
88
use std::slice;
99

10-
use {Result, Transaction, SessionInfoNew, RowsNew, LazyRowsNew, StatementInternals,
11-
WrongTypeNew};
10+
use {Result, SessionInfoNew, RowsNew, LazyRowsNew, StatementInternals, WrongTypeNew};
11+
use transaction::Transaction;
1212
use types::{FromSql, SessionInfo, WrongType};
1313
use stmt::{Statement, Column};
1414
use error::Error;

src/stmt.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ use error::{Error, DbError};
1010
use types::{SessionInfo, Type, ToSql};
1111
use message::{WriteMessage, Backend, Frontend};
1212
use rows::{Rows, LazyRows};
13-
use {bad_response, Connection, Transaction, StatementInternals, Result, RowsNew, InnerConnection,
14-
SessionInfoNew, LazyRowsNew, DbErrorNew, ColumnNew, StatementInfo, TransactionInternals};
13+
use transaction::Transaction;
14+
use {bad_response, Connection, StatementInternals, Result, RowsNew, InnerConnection, SessionInfoNew,
15+
LazyRowsNew, DbErrorNew, ColumnNew, StatementInfo, TransactionInternals};
1516

1617
/// A prepared statement.
1718
pub struct Statement<'conn> {

tests/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ use std::io;
1313
use std::io::prelude::*;
1414
use std::time::Duration;
1515

16-
use postgres::{HandleNotice, Connection, GenericConnection, SslMode, IntoConnectParams,
17-
IsolationLevel, transaction};
16+
use postgres::{HandleNotice, Connection, GenericConnection, SslMode, IntoConnectParams};
17+
use postgres::transaction::{self, IsolationLevel};
1818
use postgres::error::{Error, ConnectError, DbError};
1919
use postgres::types::{Oid, Type, Kind, WrongType};
2020
use postgres::error::SqlState::{SyntaxError,

0 commit comments

Comments
 (0)