We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8516d84 commit 650a030Copy full SHA for 650a030
src/lib.rs
@@ -454,10 +454,8 @@ impl InnerPostgresConnection {
454
args.push((~"user", user.user.clone()));
455
if !path.is_empty() {
456
// path contains the leading /
457
- let mut path = StrBuf::from_owned_str(path);
458
- // FIXME
459
- unsafe { path.shift_byte(); }
460
- args.push((~"database", path.into_owned()));
+ let (_, path) = path.slice_shift_char();
+ args.push((~"database", path.to_owned()));
461
}
462
try_pg_conn!(conn.write_messages([StartupMessage {
463
version: message::PROTOCOL_VERSION,
0 commit comments