Fix tests

This commit is contained in:
Steven Fackler
2019-10-07 17:18:00 -07:00
parent 4b5bcbb602
commit c92e95dac2
3 changed files with 11 additions and 4 deletions

View File

@@ -17,6 +17,8 @@ use std::net::IpAddr;
use std::sync::Arc;
use std::time::{Duration, SystemTime, UNIX_EPOCH};
#[cfg(feature = "with-serde_json-1")]
pub use crate::serde_json_1::Json;
use crate::type_gen::{Inner, Other};
#[doc(inline)]
@@ -94,9 +96,6 @@ mod uuid_07;
mod special;
mod type_gen;
#[cfg(feature = "with-serde_json-1")]
pub use crate::types::serde_json_1::Json;
/// A Postgres type.
#[derive(PartialEq, Eq, Clone, Debug)]
pub struct Type(Inner);

View File

@@ -2,7 +2,7 @@ use postgres_protocol::types;
use std::error::Error;
use uuid_07::Uuid;
use crate::types::{FromSql, IsNull, ToSql, Type};
use crate::{FromSql, IsNull, ToSql, Type};
impl<'a> FromSql<'a> for Uuid {
fn from_sql(_: &Type, raw: &[u8]) -> Result<Uuid, Box<dyn Error + Sync + Send>> {