Skip to content

Commit 5d08af0

Browse files
committed
Remove unnecessary impl GenericClient docs
1 parent 1ea8b7b commit 5d08af0

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

tokio-postgres/src/client.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -506,15 +506,13 @@ impl Client {
506506

507507
#[async_trait]
508508
impl GenericClient for Client {
509-
/// Like `Client::execute`.
510509
async fn execute<T>(&self, query: &T, params: &[&(dyn ToSql + Sync)]) -> Result<u64, Error>
511510
where
512511
T: ?Sized + ToStatement + Sync + Send,
513512
{
514513
self.execute(query, params).await
515514
}
516515

517-
/// Like `Client::execute_raw`.
518516
async fn execute_raw<'b, I, T>(&self, statement: &T, params: I) -> Result<u64, Error>
519517
where
520518
T: ?Sized + ToStatement + Sync + Send,
@@ -524,15 +522,13 @@ impl GenericClient for Client {
524522
self.execute_raw(statement, params).await
525523
}
526524

527-
/// Like `Client::query`.
528525
async fn query<T>(&self, query: &T, params: &[&(dyn ToSql + Sync)]) -> Result<Vec<Row>, Error>
529526
where
530527
T: ?Sized + ToStatement + Sync + Send,
531528
{
532529
self.query(query, params).await
533530
}
534531

535-
/// Like `Client::query_one`.
536532
async fn query_one<T>(
537533
&self,
538534
statement: &T,
@@ -544,7 +540,6 @@ impl GenericClient for Client {
544540
self.query_one(statement, params).await
545541
}
546542

547-
/// Like `Client::query_opt`.
548543
async fn query_opt<T>(
549544
&self,
550545
statement: &T,
@@ -556,7 +551,6 @@ impl GenericClient for Client {
556551
self.query_opt(statement, params).await
557552
}
558553

559-
/// Like `Client::query_raw`.
560554
async fn query_raw<'b, T, I>(&self, statement: &T, params: I) -> Result<RowStream, Error>
561555
where
562556
T: ?Sized + ToStatement + Sync + Send,
@@ -566,12 +560,10 @@ impl GenericClient for Client {
566560
self.query_raw(statement, params).await
567561
}
568562

569-
/// Like `Client::prepare`.
570563
async fn prepare(&self, query: &str) -> Result<Statement, Error> {
571564
self.prepare(query).await
572565
}
573566

574-
/// Like `Client::prepare_typed`.
575567
async fn prepare_typed(
576568
&self,
577569
query: &str,
@@ -580,7 +572,6 @@ impl GenericClient for Client {
580572
self.prepare_typed(query, parameter_types).await
581573
}
582574

583-
/// Like `Client::transaction`.
584575
async fn transaction(&mut self) -> Result<Transaction<'_>, Error> {
585576
self.transaction().await
586577
}

tokio-postgres/src/transaction.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -289,15 +289,13 @@ impl<'a> Transaction<'a> {
289289

290290
#[async_trait]
291291
impl crate::GenericClient for Transaction<'_> {
292-
/// Like `Transaction::execute`.
293292
async fn execute<T>(&self, query: &T, params: &[&(dyn ToSql + Sync)]) -> Result<u64, Error>
294293
where
295294
T: ?Sized + ToStatement + Sync + Send,
296295
{
297296
self.execute(query, params).await
298297
}
299298

300-
/// Like `Transaction::execute_raw`.
301299
async fn execute_raw<'b, I, T>(&self, statement: &T, params: I) -> Result<u64, Error>
302300
where
303301
T: ?Sized + ToStatement + Sync + Send,
@@ -307,15 +305,13 @@ impl crate::GenericClient for Transaction<'_> {
307305
self.execute_raw(statement, params).await
308306
}
309307

310-
/// Like `Transaction::query`.
311308
async fn query<T>(&self, query: &T, params: &[&(dyn ToSql + Sync)]) -> Result<Vec<Row>, Error>
312309
where
313310
T: ?Sized + ToStatement + Sync + Send,
314311
{
315312
self.query(query, params).await
316313
}
317314

318-
/// Like `Transaction::query_one`.
319315
async fn query_one<T>(
320316
&self,
321317
statement: &T,
@@ -327,7 +323,6 @@ impl crate::GenericClient for Transaction<'_> {
327323
self.query_one(statement, params).await
328324
}
329325

330-
/// Like `Transaction::query_opt`.
331326
async fn query_opt<T>(
332327
&self,
333328
statement: &T,
@@ -339,7 +334,6 @@ impl crate::GenericClient for Transaction<'_> {
339334
self.query_opt(statement, params).await
340335
}
341336

342-
/// Like `Transaction::query_raw`.
343337
async fn query_raw<'b, T, I>(&self, statement: &T, params: I) -> Result<RowStream, Error>
344338
where
345339
T: ?Sized + ToStatement + Sync + Send,
@@ -349,12 +343,10 @@ impl crate::GenericClient for Transaction<'_> {
349343
self.query_raw(statement, params).await
350344
}
351345

352-
/// Like `Transaction::prepare`.
353346
async fn prepare(&self, query: &str) -> Result<Statement, Error> {
354347
self.prepare(query).await
355348
}
356349

357-
/// Like `Transaction::prepare_typed`.
358350
async fn prepare_typed(
359351
&self,
360352
query: &str,
@@ -363,7 +355,6 @@ impl crate::GenericClient for Transaction<'_> {
363355
self.prepare_typed(query, parameter_types).await
364356
}
365357

366-
/// Like `Transaction::transaction`.
367358
#[allow(clippy::needless_lifetimes)]
368359
async fn transaction<'a>(&'a mut self) -> Result<Transaction<'a>, Error> {
369360
self.transaction().await

0 commit comments

Comments
 (0)