Fix tests
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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>> {
|
||||
|
||||
Reference in New Issue
Block a user