Skip to content

Commit 278a03a

Browse files
committed
Rustfmt
1 parent 3ddcf87 commit 278a03a

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,8 @@ impl InnerConnection {
402402
let user = match user {
403403
Some(user) => user,
404404
None => {
405-
let err: Box<StdError + StdSync + Send> = "User missing from connection parameters".into();
405+
let err: Box<StdError + StdSync + Send> = "User missing from connection parameters"
406+
.into();
406407
return Err(ConnectError::ConnectParams(err));
407408
}
408409
};

src/types/mod.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,7 @@ macro_rules! to_sql_checked {
4444
// WARNING: this function is not considered part of this crate's public API.
4545
// It is subject to change at any time.
4646
#[doc(hidden)]
47-
pub fn __to_sql_checked<T>(v: &T,
48-
ty: &Type,
49-
out: &mut Write,
50-
ctx: &SessionInfo)
51-
-> Result<IsNull>
47+
pub fn __to_sql_checked<T>(v: &T, ty: &Type, out: &mut Write, ctx: &SessionInfo) -> Result<IsNull>
5248
where T: ToSql
5349
{
5450
if !T::accepts(ty) {
@@ -589,7 +585,9 @@ pub struct WrongType(Type);
589585

590586
impl fmt::Display for WrongType {
591587
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
592-
write!(fmt, "cannot convert to or from a Postgres value of type `{}`", self.0)
588+
write!(fmt,
589+
"cannot convert to or from a Postgres value of type `{}`",
590+
self.0)
593591
}
594592
}
595593

0 commit comments

Comments
 (0)