Skip to content

Commit

Permalink
bump rust-postgres (prisma#5027)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 authored Nov 1, 2024
1 parent 00b1df9 commit dc59d1c
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 14 deletions.
50 changes: 39 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions quaint/src/connector/postgres/native/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ use postgres_native_tls::MakeTlsConnector;
use postgres_types::{Kind as PostgresKind, Type as PostgresType};
use std::hash::{DefaultHasher, Hash, Hasher};
use std::{
borrow::Borrow,
fmt::{Debug, Display},
fs,
future::Future,
Expand Down Expand Up @@ -206,8 +205,8 @@ impl PostgresNativeUrl {
pub(crate) fn to_config(&self) -> Config {
let mut config = Config::new();

config.user(self.username().borrow());
config.password(self.password().borrow() as &str);
config.user(self.username().as_ref());
config.password(self.password().as_ref());
config.host(self.host());
config.port(self.port());
config.dbname(self.dbname());
Expand Down

0 comments on commit dc59d1c

Please sign in to comment.