Run rustfmt

This commit is contained in:
Ryan Leckey 2019-08-20 16:47:43 -07:00
parent ab847f76c4
commit 154cb51bf6
2 changed files with 8 additions and 1 deletions

View File

@ -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)",

View File

@ -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(),
}
}
}