Skip to content

Commit 17a5ab3

Browse files
committed
Little cleanups
1 parent de06c71 commit 17a5ab3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ impl Connection {
919919
/// let conn = Connection::connect(url, TlsMode::None).unwrap();
920920
/// ```
921921
///
922-
/// To connect building a `ConnectParams` struct manually:
922+
/// To connect with a manually constructed `ConnectParams`:
923923
/// ```rust,no_run
924924
/// use postgres::{Connection, TlsMode};
925925
/// use postgres::params::{UserInfo, ConnectParams, ConnectTarget};

src/types/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ impl FromSql for HashMap<String, Option<String>> {
442442
_: &SessionInfo)
443443
-> Result<HashMap<String, Option<String>>, Box<Error + Sync + Send>> {
444444
try!(types::hstore_from_sql(raw))
445-
.map(|(k, v)| (k.to_owned(), v.map(|v| v.to_owned())))
445+
.map(|(k, v)| (k.to_owned(), v.map(str::to_owned)))
446446
.collect()
447447
}
448448

0 commit comments

Comments
 (0)