Skip to content

Commit b7ab16b

Browse files
committed
Fix formatting
Signed-off-by: Jared Reyes <jaredreyespt@gmail.com>
1 parent b7b2b72 commit b7ab16b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

sqlx-postgres/src/types/json.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,9 @@ where
8787
if value.format() == PgValueFormat::Binary && value.type_info == PgTypeInfo::JSONB {
8888
// Check JSONB version byte - PostgreSQL currently only supports version 1
8989
if buf[0] != 1 {
90-
return Err(format!(
91-
"unsupported JSONB format version {} (expected 1)",
92-
buf[0]
93-
)
94-
.into());
90+
return Err(
91+
format!("unsupported JSONB format version {} (expected 1)", buf[0]).into(),
92+
);
9593
}
9694

9795
buf = &buf[1..];

0 commit comments

Comments
 (0)