Suppress ouroboros missing docs warnings (#288)

* Suppress `ouroboros` missing docs warnings

* Suppress warnings
This commit is contained in:
Billy Chan 2021-11-15 11:14:32 +08:00 committed by GitHub
parent 5f768aa436
commit f4008f9f7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,5 @@
#![allow(missing_docs)]
use std::{pin::Pin, task::Poll};
#[cfg(feature = "mock")]

View File

@ -1,3 +1,5 @@
#![allow(missing_docs)]
use std::{ops::DerefMut, pin::Pin, task::Poll};
use futures::Stream;
@ -11,9 +13,9 @@ use futures::lock::MutexGuard;
use crate::{DbErr, InnerConnection, QueryResult, Statement};
#[ouroboros::self_referencing]
/// `TransactionStream` cannot be used in a `transaction` closure as it does not impl `Send`.
/// It seems to be a Rust limitation right now, and solution to work around this deemed to be extremely hard.
#[ouroboros::self_referencing]
pub struct TransactionStream<'a> {
stmt: Statement,
conn: MutexGuard<'a, InnerConnection>,