Skip to content

Commit

Permalink
compile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Oct 31, 2024
1 parent 1dd85fc commit 67e8e11
Showing 1 changed file with 2 additions and 3 deletions.
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 67e8e11

Please sign in to comment.