Skip to content

Commit b5cba2f

Browse files
jeff-davispetrosagg
authored andcommitted
Make simple_query::encode() pub(crate).
1 parent ff7d88f commit b5cba2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tokio-postgres/src/simple_query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub async fn batch_execute(client: &InnerClient, query: &str) -> Result<(), Erro
6161
}
6262
}
6363

64-
fn encode(client: &InnerClient, query: &str) -> Result<Bytes, Error> {
64+
pub(crate) fn encode(client: &InnerClient, query: &str) -> Result<Bytes, Error> {
6565
client.with_buf(|buf| {
6666
frontend::query(query, buf).map_err(Error::encode)?;
6767
Ok(buf.split().freeze())

0 commit comments

Comments
 (0)