From bb17e3b284b12ad7b8771728f840c859fb1178a3 Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Tue, 6 Aug 2019 23:15:03 -0700 Subject: [PATCH] Tighten encapsulation a bit after recent backend generalization --- src/postgres/connection/mod.rs | 2 +- src/postgres/mod.rs | 2 +- src/row.rs | 7 +------ 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/postgres/connection/mod.rs b/src/postgres/connection/mod.rs index 86b0b757..203043f7 100644 --- a/src/postgres/connection/mod.rs +++ b/src/postgres/connection/mod.rs @@ -17,7 +17,7 @@ mod prepare; mod select; pub struct Connection { - pub(super) stream: TcpStream, + stream: TcpStream, // Do we think that there is data in the read buffer to be decoded stream_readable: bool, diff --git a/src/postgres/mod.rs b/src/postgres/mod.rs index d11eccc0..92110494 100644 --- a/src/postgres/mod.rs +++ b/src/postgres/mod.rs @@ -4,7 +4,7 @@ mod connection; pub use connection::Connection; -pub(crate) mod protocol; +mod protocol; pub mod types; diff --git a/src/row.rs b/src/row.rs index f1429a1c..1c81549c 100644 --- a/src/row.rs +++ b/src/row.rs @@ -1,9 +1,4 @@ -use crate::{ - backend::Backend, - deserialize::FromSql, - postgres::{protocol::DataRow, Postgres}, - types::SqlType, -}; +use crate::{backend::Backend, deserialize::FromSql, postgres::Postgres, types::SqlType}; pub trait RawRow { fn is_empty(&self) -> bool;