Skip to content

Commit c92e95d

Browse files
committed
Fix tests
1 parent 4b5bcbb commit c92e95d

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

postgres-types/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ use std::net::IpAddr;
1717
use std::sync::Arc;
1818
use std::time::{Duration, SystemTime, UNIX_EPOCH};
1919

20+
#[cfg(feature = "with-serde_json-1")]
21+
pub use crate::serde_json_1::Json;
2022
use crate::type_gen::{Inner, Other};
2123

2224
#[doc(inline)]
@@ -94,9 +96,6 @@ mod uuid_07;
9496
mod special;
9597
mod type_gen;
9698

97-
#[cfg(feature = "with-serde_json-1")]
98-
pub use crate::types::serde_json_1::Json;
99-
10099
/// A Postgres type.
101100
#[derive(PartialEq, Eq, Clone, Debug)]
102101
pub struct Type(Inner);

postgres-types/src/uuid_07.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use postgres_protocol::types;
22
use std::error::Error;
33
use uuid_07::Uuid;
44

5-
use crate::types::{FromSql, IsNull, ToSql, Type};
5+
use crate::{FromSql, IsNull, ToSql, Type};
66

77
impl<'a> FromSql<'a> for Uuid {
88
fn from_sql(_: &Type, raw: &[u8]) -> Result<Uuid, Box<dyn Error + Sync + Send>> {

tokio-postgres/Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,11 @@ lazy_static = { version = "1.0", optional = true }
4949
[dev-dependencies]
5050
tokio = "=0.2.0-alpha.6"
5151
env_logger = "0.5"
52+
53+
bit-vec-06 = { version = "0.6", package = "bit-vec" }
54+
chrono-04 = { version = "0.4", package = "chrono" }
55+
eui48-04 = { version = "0.4", package = "eui48" }
56+
geo-types-04 = { version = "0.4", package = "geo-types" }
57+
serde-1 = { version = "1.0", package = "serde" }
58+
serde_json-1 = { version = "1.0", package = "serde_json" }
59+
uuid-07 = { version = "0.7", package = "uuid" }

0 commit comments

Comments
 (0)