Skip to content

Commit 5d5b890

Browse files
Merge pull request #1237 from MustardForBreakfast/jw/test-doc-fix
tokio-postgres: Fix test assertion, document existing support for `cidr 0.3`
2 parents 9d65461 + e89059f commit 5d5b890

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tokio-postgres/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
//! | `array-impls` | Enables `ToSql` and `FromSql` trait impls for arrays | - | no |
108108
//! | `with-bit-vec-0_6` | Enable support for the `bit-vec` crate. | [bit-vec](https://crates.io/crates/bit-vec) 0.6 | no |
109109
//! | `with-chrono-0_4` | Enable support for the `chrono` crate. | [chrono](https://crates.io/crates/chrono) 0.4 | no |
110+
//! | `with-cidr-0_3` | Enable support for the `cidr` crate. | [cidr](https://crates.io/crates/cidr) 0.3 | no |
110111
//! | `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 |
111112
//! | `with-eui48-1` | Enable support for the 1.0 version of the `eui48` crate. | [eui48](https://crates.io/crates/eui48) 1.0 | no |
112113
//! | `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 |

tokio-postgres/tests/test/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ async fn query_opt() {
928928
.unwrap()
929929
.unwrap();
930930
client
931-
.query_one("SELECT * FROM foo", &[])
931+
.query_opt("SELECT * FROM foo", &[])
932932
.await
933933
.err()
934934
.unwrap();

0 commit comments

Comments
 (0)