Skip to content

Commit 678f48d

Browse files
FL33TW00Dweiznich
authored andcommitted
fix: Spelling
1 parent 61183dc commit 678f48d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/mysql/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl AsyncConnection for AsyncMysqlConnection {
7878
+ diesel::query_builder::QueryId
7979
+ Send,
8080
{
81-
self.with_preapared_statement(source.as_query(), |conn, stmt, binds| async move {
81+
self.with_prepared_statement(source.as_query(), |conn, stmt, binds| async move {
8282
let res = conn.exec_iter(&*stmt, binds).await.map_err(ErrorHelper)?;
8383

8484
let stream = res
@@ -104,7 +104,7 @@ impl AsyncConnection for AsyncMysqlConnection {
104104
+ diesel::query_builder::QueryId
105105
+ Send,
106106
{
107-
self.with_preapared_statement(source, |conn, stmt, binds| async move {
107+
self.with_prepared_statement(source, |conn, stmt, binds| async move {
108108
conn.exec_drop(&*stmt, binds).await.map_err(ErrorHelper)?;
109109
Ok(conn.affected_rows() as usize)
110110
})
@@ -155,7 +155,7 @@ impl AsyncMysqlConnection {
155155
Ok(conn)
156156
}
157157

158-
async fn with_preapared_statement<'a, T, F, R>(
158+
async fn with_prepared_statement<'a, T, F, R>(
159159
&'a mut self,
160160
query: T,
161161
callback: impl FnOnce(&'a mut mysql_async::Conn, &'a Statement, ToSqlHelper) -> F,

src/pg/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl AsyncConnection for AsyncPgConnection {
8686
T: AsQuery + Send,
8787
T::Query: QueryFragment<Self::Backend> + QueryId + Send,
8888
{
89-
self.with_preapared_statement(source.as_query(), |conn, stmt, binds| async move {
89+
self.with_prepared_statement(source.as_query(), |conn, stmt, binds| async move {
9090
let res = conn.query_raw(&*stmt, binds).await.map_err(ErrorHelper)?;
9191

9292
Ok(res
@@ -101,7 +101,7 @@ impl AsyncConnection for AsyncPgConnection {
101101
where
102102
T: QueryFragment<Self::Backend> + QueryId + Send,
103103
{
104-
self.with_preapared_statement(source, |conn, stmt, binds| async move {
104+
self.with_prepared_statement(source, |conn, stmt, binds| async move {
105105
let binds = binds
106106
.iter()
107107
.map(|b| b as &(dyn ToSql + Sync))
@@ -216,7 +216,7 @@ impl AsyncPgConnection {
216216
Ok(())
217217
}
218218

219-
async fn with_preapared_statement<'a, T, F, R>(
219+
async fn with_prepared_statement<'a, T, F, R>(
220220
&'a mut self,
221221
query: T,
222222
callback: impl FnOnce(

0 commit comments

Comments
 (0)