From 377d84b127ec27d558e0effc4055c34c8399259a Mon Sep 17 00:00:00 2001 From: Justin Wayne Date: Fri, 2 May 2025 15:16:29 -0500 Subject: [PATCH 1/2] fix test - call the correct method --- tokio-postgres/tests/test/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio-postgres/tests/test/main.rs b/tokio-postgres/tests/test/main.rs index 9a6aa26fe..af4f8db1a 100644 --- a/tokio-postgres/tests/test/main.rs +++ b/tokio-postgres/tests/test/main.rs @@ -928,7 +928,7 @@ async fn query_opt() { .unwrap() .unwrap(); client - .query_one("SELECT * FROM foo", &[]) + .query_opt("SELECT * FROM foo", &[]) .await .err() .unwrap(); From e89059fb73036fc5e0e3fb20dcc9400141d68187 Mon Sep 17 00:00:00 2001 From: Justin Wayne Date: Fri, 2 May 2025 15:21:49 -0500 Subject: [PATCH 2/2] add missing documentation for the with-cidr-0_3 feature flag --- tokio-postgres/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tokio-postgres/src/lib.rs b/tokio-postgres/src/lib.rs index ec843d511..09f7cfeb7 100644 --- a/tokio-postgres/src/lib.rs +++ b/tokio-postgres/src/lib.rs @@ -107,6 +107,7 @@ //! | `array-impls` | Enables `ToSql` and `FromSql` trait impls for arrays | - | no | //! | `with-bit-vec-0_6` | Enable support for the `bit-vec` crate. | [bit-vec](https://crates.io/crates/bit-vec) 0.6 | no | //! | `with-chrono-0_4` | Enable support for the `chrono` crate. | [chrono](https://crates.io/crates/chrono) 0.4 | no | +//! | `with-cidr-0_3` | Enable support for the `cidr` crate. | [cidr](https://crates.io/crates/cidr) 0.3 | no | //! | `with-eui48-0_4` | Enable support for the 0.4 version of the `eui48` crate. This is deprecated and will be removed. | [eui48](https://crates.io/crates/eui48) 0.4 | no | //! | `with-eui48-1` | Enable support for the 1.0 version of the `eui48` crate. | [eui48](https://crates.io/crates/eui48) 1.0 | no | //! | `with-geo-types-0_6` | Enable support for the 0.6 version of the `geo-types` crate. | [geo-types](https://crates.io/crates/geo-types/0.6.0) 0.6 | no |