Skip to content

Commit 1488a14

Browse files
committed
Disable doctests
1 parent bc75368 commit 1488a14

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ documentation = "http://www.rust-ci.org/andelf/rust-postgis/doc/postgis/"
1010
keywords = ["PostgreSQL", "PostGIS", "GIS", "GEO"]
1111
license = "MIT"
1212

13+
[lib]
14+
doctest = false
15+
1316
[dependencies]
1417
postgres = "^0.12"
1518
byteorder = "^0.5"

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
//!
1616
//! fn main() {
1717
//! // conn ....
18+
//! # let conn = Connection::connect("postgresql://postgres@localhost", TlsMode::None).unwrap();
1819
//! for row in &conn.query("SELECT * FROM busline", &[]).unwrap() {
1920
//! let route: ewkb::LineString = row.get("route");
2021
//! let last_stop = route.points().last().unwrap();

src/twkb.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//! use postgis::twkb;
99
//! use postgis::LineString;
1010
//!
11+
//! # let conn = Connection::connect("postgresql://postgres@localhost", TlsMode::None).unwrap();
1112
//! for row in &conn.query("SELECT ST_AsTWKB(route) FROM busline", &[]).unwrap() {
1213
//! let route: twkb::LineString = row.get(0);
1314
//! let last_stop = route.points().last().unwrap();

0 commit comments

Comments
 (0)