Skip to content

Commit 5bd1d32

Browse files
jeff-davispetrosagg
authored andcommitted
Make simple_query::encode() pub(crate).
1 parent f4d8d60 commit 5bd1d32

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
@@ -62,7 +62,7 @@ pub async fn batch_execute(client: &InnerClient, query: &str) -> Result<(), Erro
6262
}
6363
}
6464

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

0 commit comments

Comments
 (0)