mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
Run rustfmt
This commit is contained in:
parent
ab847f76c4
commit
154cb51bf6
@ -39,26 +39,31 @@ fn criterion_benchmark(c: &mut Criterion) {
|
||||
"postgres - decode - Message - DataRow (x 1000)",
|
||||
MESSAGE_DATA_ROW,
|
||||
);
|
||||
|
||||
bench(
|
||||
c,
|
||||
"postgres - decode - Message - ReadyForQuery (x 1000)",
|
||||
MESSAGE_READY_FOR_QUERY,
|
||||
);
|
||||
|
||||
bench(
|
||||
c,
|
||||
"postgres - decode - Message - CommandComplete (x 1000)",
|
||||
MESSAGE_COMMAND_COMPLETE,
|
||||
);
|
||||
|
||||
bench(
|
||||
c,
|
||||
"postgres - decode - Message - Response (x 1000)",
|
||||
MESSAGE_RESPONSE,
|
||||
);
|
||||
|
||||
bench(
|
||||
c,
|
||||
"postgres - decode - Message - BackendKeyData (x 1000)",
|
||||
MESSAGE_BACKEND_KEY_DATA,
|
||||
);
|
||||
|
||||
bench(
|
||||
c,
|
||||
"postgres - decode - Message - ParameterStatus (x 1000)",
|
||||
|
||||
@ -20,7 +20,9 @@ impl Decode for ParameterDescription {
|
||||
ids.push(BigEndian::read_u32(&src[offset..]));
|
||||
}
|
||||
|
||||
ParameterDescription { ids: ids.into_boxed_slice() }
|
||||
ParameterDescription {
|
||||
ids: ids.into_boxed_slice(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user