Skip to content

Commit f2df2f0

Browse files
committed
fix docs
1 parent 0e73efe commit f2df2f0

File tree

6 files changed

+28
-28
lines changed

6 files changed

+28
-28
lines changed

amadeus-aws/src/cloudfront.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ impl Cloudfront {
5353
}
5454
}
5555

56-
#[cfg(not(nightly))]
56+
#[cfg(not(all(nightly, not(doc))))]
5757
type Output = std::pin::Pin<Box<dyn Stream<Item = Result<CloudfrontRow, AwsError>> + Send>>;
58-
#[cfg(nightly)]
58+
#[cfg(all(nightly, not(doc)))]
5959
type Output = impl Stream<Item = Result<CloudfrontRow, AwsError>> + Send;
6060

6161
FnMutNamed! {
@@ -103,7 +103,7 @@ FnMutNamed! {
103103
}
104104
.flatten_stream()
105105
.map(|x: Result<Result<CloudfrontRow, _>, _>| x.and_then(identity));
106-
#[cfg(not(nightly))]
106+
#[cfg(not(all(nightly, not(doc))))]
107107
let ret = ret.boxed();
108108
ret
109109
}
@@ -114,13 +114,13 @@ impl Source for Cloudfront {
114114
type Error = AwsError;
115115

116116
type ParStream = DistParStream<Self::DistStream>;
117-
#[cfg(not(nightly))]
117+
#[cfg(not(all(nightly, not(doc))))]
118118
#[allow(clippy::type_complexity)]
119119
type DistStream = amadeus_core::par_stream::FlatMap<
120120
amadeus_core::into_par_stream::IterDistStream<std::vec::IntoIter<String>>,
121121
Closure,
122122
>;
123-
#[cfg(nightly)]
123+
#[cfg(all(nightly, not(doc)))]
124124
type DistStream = impl DistributedStream<Item = Result<Self::Item, Self::Error>>;
125125

126126
fn par_stream(self) -> Self::ParStream {

amadeus-commoncrawl/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ impl CommonCrawl {
8080
}
8181
}
8282

83-
#[cfg(not(nightly))]
83+
#[cfg(not(all(nightly, not(doc))))]
8484
type Output = std::pin::Pin<Box<dyn Stream<Item = Result<Webpage<'static>, io::Error>> + Send>>;
85-
#[cfg(nightly)]
85+
#[cfg(all(nightly, not(doc)))]
8686
type Output = impl Stream<Item = Result<Webpage<'static>, io::Error>> + Send;
8787

8888
FnMutNamed! {
@@ -99,7 +99,7 @@ FnMutNamed! {
9999
WarcParser::new(body)
100100
}
101101
.flatten_stream();
102-
#[cfg(not(nightly))]
102+
#[cfg(not(all(nightly, not(doc))))]
103103
let ret = ret.boxed();
104104
ret
105105
}
@@ -110,13 +110,13 @@ impl Source for CommonCrawl {
110110
type Error = io::Error;
111111

112112
type ParStream = DistParStream<Self::DistStream>;
113-
#[cfg(not(nightly))]
113+
#[cfg(not(all(nightly, not(doc))))]
114114
#[allow(clippy::type_complexity)]
115115
type DistStream = amadeus_core::par_stream::FlatMap<
116116
amadeus_core::into_par_stream::IterDistStream<std::vec::IntoIter<String>>,
117117
Closure,
118118
>;
119-
#[cfg(nightly)]
119+
#[cfg(all(nightly, not(doc)))]
120120
type DistStream = impl DistributedStream<Item = Result<Self::Item, Self::Error>>;
121121

122122
fn par_stream(self) -> Self::ParStream {

amadeus-parquet/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
#[cfg(nightly)]
3939
extern crate test;
4040

41-
#[cfg(nightly)]
41+
#[cfg(all(nightly, not(doc)))]
4242
mod internal;
4343

44-
#[cfg(nightly)]
44+
#[cfg(all(nightly, not(doc)))]
4545
mod wrap {
4646
use super::internal;
4747
use async_trait::async_trait;
@@ -371,5 +371,5 @@ mod wrap {
371371
}
372372
}
373373
}
374-
#[cfg(nightly)]
374+
#[cfg(all(nightly, not(doc)))]
375375
pub use wrap::*;

amadeus-postgres/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ where
212212
}
213213
}
214214

215-
#[cfg(not(nightly))]
215+
#[cfg(not(all(nightly, not(doc))))]
216216
type Output<Row> = Pin<Box<dyn Stream<Item = Result<Row, PostgresError>> + Send>>;
217-
#[cfg(nightly)]
217+
#[cfg(all(nightly, not(doc)))]
218218
type Output<Row> = impl Stream<Item = Result<Row, PostgresError>> + Send;
219219

220220
FnMutNamed! {
@@ -261,7 +261,7 @@ FnMutNamed! {
261261
})
262262
}
263263
.flatten_stream();
264-
#[cfg(not(nightly))]
264+
#[cfg(not(all(nightly, not(doc))))]
265265
let ret = ret.boxed();
266266
ret
267267
}
@@ -275,15 +275,15 @@ where
275275
type Error = PostgresError;
276276

277277
type ParStream = DistParStream<Self::DistStream>;
278-
#[cfg(not(nightly))]
278+
#[cfg(not(all(nightly, not(doc))))]
279279
#[allow(clippy::type_complexity)]
280280
type DistStream = amadeus_core::par_stream::FlatMap<
281281
amadeus_core::into_par_stream::IterDistStream<
282282
std::vec::IntoIter<(ConnectParams, Vec<PostgresSelect>)>,
283283
>,
284284
Closure<Row>,
285285
>;
286-
#[cfg(nightly)]
286+
#[cfg(all(nightly, not(doc)))]
287287
type DistStream = impl DistributedStream<Item = Result<Self::Item, Self::Error>>;
288288

289289
fn par_stream(self) -> Self::ParStream {

amadeus-serde/src/csv.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ where
8080
}
8181

8282
type Error<P, E> = CsvError<E, <P as Partition>::Error, <<P as Partition>::Page as Page>::Error>;
83-
#[cfg(not(nightly))]
83+
#[cfg(not(all(nightly, not(doc))))]
8484
type Output<P, Row, E> = std::pin::Pin<Box<dyn Stream<Item = Result<Row, Error<P, E>>>>>;
85-
#[cfg(nightly)]
85+
#[cfg(all(nightly, not(doc)))]
8686
type Output<P: Partition, Row, E> = impl Stream<Item = Result<Row, Error<P, E>>>;
8787

8888
FnMutNamed! {
@@ -128,7 +128,7 @@ FnMutNamed! {
128128
.map(ResultExpandIter::new)
129129
.flatten_stream()
130130
.map(|row: Result<Result<Row, Error<P, E>>, Error<P, E>>| Ok(row??));
131-
#[cfg(not(nightly))]
131+
#[cfg(not(all(nightly, not(doc))))]
132132
let ret = ret.boxed_local();
133133
ret
134134
}
@@ -148,13 +148,13 @@ where
148148
>;
149149

150150
type ParStream = DistParStream<Self::DistStream>;
151-
#[cfg(not(nightly))]
151+
#[cfg(not(all(nightly, not(doc))))]
152152
#[allow(clippy::type_complexity)]
153153
type DistStream = amadeus_core::par_stream::FlatMap<
154154
amadeus_core::into_par_stream::IterDistStream<std::vec::IntoIter<F::Partition>>,
155155
Closure<F::Partition, Row, F::Error>,
156156
>;
157-
#[cfg(nightly)]
157+
#[cfg(all(nightly, not(doc)))]
158158
type DistStream = impl DistributedStream<Item = Result<Self::Item, Self::Error>>;
159159

160160
fn par_stream(self) -> Self::ParStream {

amadeus-serde/src/json.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ where
3939
}
4040

4141
type Error<P, E> = JsonError<E, <P as Partition>::Error, <<P as Partition>::Page as Page>::Error>;
42-
#[cfg(not(nightly))]
42+
#[cfg(not(all(nightly, not(doc))))]
4343
type Output<P, Row, E> = std::pin::Pin<Box<dyn Stream<Item = Result<Row, Error<P, E>>>>>;
44-
#[cfg(nightly)]
44+
#[cfg(all(nightly, not(doc)))]
4545
type Output<P: Partition, Row, E> = impl Stream<Item = Result<Row, Error<P, E>>>;
4646

4747
FnMutNamed! {
@@ -82,7 +82,7 @@ FnMutNamed! {
8282
.map(ResultExpandIter::new)
8383
.flatten_stream()
8484
.map(|row: Result<Result<Row, Error<P, E>>, Error<P, E>>| Ok(row??));
85-
#[cfg(not(nightly))]
85+
#[cfg(not(all(nightly, not(doc))))]
8686
let ret = ret.boxed_local();
8787
ret
8888
}
@@ -102,13 +102,13 @@ where
102102
>;
103103

104104
type ParStream = DistParStream<Self::DistStream>;
105-
#[cfg(not(nightly))]
105+
#[cfg(not(all(nightly, not(doc))))]
106106
#[allow(clippy::type_complexity)]
107107
type DistStream = amadeus_core::par_stream::FlatMap<
108108
amadeus_core::into_par_stream::IterDistStream<std::vec::IntoIter<F::Partition>>,
109109
Closure<F::Partition, Row, F::Error>,
110110
>;
111-
#[cfg(nightly)]
111+
#[cfg(all(nightly, not(doc)))]
112112
type DistStream = impl DistributedStream<Item = Result<Self::Item, Self::Error>>;
113113

114114
fn par_stream(self) -> Self::ParStream {

0 commit comments

Comments
 (0)