File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -919,7 +919,7 @@ impl Connection {
919
919
/// let conn = Connection::connect(url, TlsMode::None).unwrap();
920
920
/// ```
921
921
///
922
- /// To connect building a `ConnectParams` struct manually :
922
+ /// To connect with a manually constructed `ConnectParams`:
923
923
/// ```rust,no_run
924
924
/// use postgres::{Connection, TlsMode};
925
925
/// use postgres::params::{UserInfo, ConnectParams, ConnectTarget};
Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ impl FromSql for HashMap<String, Option<String>> {
442
442
_: & SessionInfo )
443
443
-> Result < HashMap < String , Option < String > > , Box < Error + Sync + Send > > {
444
444
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) ) )
446
446
. collect ( )
447
447
}
448
448
You can’t perform that action at this time.
0 commit comments