Skip to content

Commit 16021d2

Browse files
committed
Fix docs
1 parent aa3aedd commit 16021d2

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

postgres/src/copy_out_reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::marker::PhantomData;
55
use tokio_postgres::impls;
66
use tokio_postgres::Error;
77

8-
// The reader returned by the `copy_out` method.
8+
/// The reader returned by the `copy_out` method.
99
pub struct CopyOutReader<'a> {
1010
it: stream::Wait<impls::CopyOut>,
1111
cur: Cursor<Bytes>,

postgres/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#![warn(clippy::all, rust_2018_idioms)]
1+
//!
2+
#![warn(clippy::all, rust_2018_idioms, missing_docs)]
23

34
#[cfg(feature = "runtime")]
45
use lazy_static::lazy_static;

postgres/src/transaction.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,33 +66,33 @@ impl<'a> Transaction<'a> {
6666
Ok(())
6767
}
6868

69-
//// Like `Client::prepare`.
69+
/// Like `Client::prepare`.
7070
pub fn prepare(&mut self, query: &str) -> Result<Statement, Error> {
7171
self.client.prepare(query)
7272
}
7373

74-
//// Like `Client::prepare_typed`.
74+
/// Like `Client::prepare_typed`.
7575
pub fn prepare_typed(&mut self, query: &str, types: &[Type]) -> Result<Statement, Error> {
7676
self.client.prepare_typed(query, types)
7777
}
7878

79-
//// Like `Client::execute`.
79+
/// Like `Client::execute`.
8080
pub fn execute<T>(&mut self, query: &T, params: &[&dyn ToSql]) -> Result<u64, Error>
8181
where
8282
T: ?Sized + ToStatement,
8383
{
8484
self.client.execute(query, params)
8585
}
8686

87-
//// Like `Client::query`.
87+
/// Like `Client::query`.
8888
pub fn query<T>(&mut self, query: &T, params: &[&dyn ToSql]) -> Result<Vec<Row>, Error>
8989
where
9090
T: ?Sized + ToStatement,
9191
{
9292
self.client.query(query, params)
9393
}
9494

95-
//// Like `Client::query_iter`.
95+
/// Like `Client::query_iter`.
9696
pub fn query_iter<T>(
9797
&mut self,
9898
query: &T,

0 commit comments

Comments
 (0)