We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7b2b72 commit b7ab16bCopy full SHA for b7ab16b
sqlx-postgres/src/types/json.rs
@@ -87,11 +87,9 @@ where
87
if value.format() == PgValueFormat::Binary && value.type_info == PgTypeInfo::JSONB {
88
// Check JSONB version byte - PostgreSQL currently only supports version 1
89
if buf[0] != 1 {
90
- return Err(format!(
91
- "unsupported JSONB format version {} (expected 1)",
92
- buf[0]
93
- )
94
- .into());
+ return Err(
+ format!("unsupported JSONB format version {} (expected 1)", buf[0]).into(),
+ );
95
}
96
97
buf = &buf[1..];
0 commit comments