@@ -39,7 +39,7 @@ impl Database {
39
39
/// called, the returned cursor will be generic over the `T` specified.
40
40
#[ deeplink]
41
41
#[ options_doc( aggregate) ]
42
- pub fn aggregate ( & self , pipeline : impl IntoIterator < Item = Document > ) -> Aggregate {
42
+ pub fn aggregate ( & self , pipeline : impl IntoIterator < Item = Document > ) -> Aggregate < ' _ > {
43
43
Aggregate :: new (
44
44
AggregateTargetRef :: Database ( self ) ,
45
45
pipeline. into_iter ( ) . collect ( ) ,
61
61
/// called, the returned cursor will be generic over the `T` specified.
62
62
#[ deeplink]
63
63
#[ options_doc( aggregate) ]
64
- pub fn aggregate ( & self , pipeline : impl IntoIterator < Item = Document > ) -> Aggregate {
64
+ pub fn aggregate ( & self , pipeline : impl IntoIterator < Item = Document > ) -> Aggregate < ' _ > {
65
65
Aggregate :: new (
66
66
AggregateTargetRef :: Collection ( CollRef :: new ( self ) ) ,
67
67
pipeline. into_iter ( ) . collect ( ) ,
@@ -82,7 +82,7 @@ impl crate::sync::Database {
82
82
/// returned cursor will be generic over the `T` specified.
83
83
#[ deeplink]
84
84
#[ options_doc( aggregate, "run" ) ]
85
- pub fn aggregate ( & self , pipeline : impl IntoIterator < Item = Document > ) -> Aggregate {
85
+ pub fn aggregate ( & self , pipeline : impl IntoIterator < Item = Document > ) -> Aggregate < ' _ > {
86
86
self . async_database . aggregate ( pipeline)
87
87
}
88
88
}
@@ -103,7 +103,7 @@ where
103
103
/// returned cursor will be generic over the `T` specified.
104
104
#[ deeplink]
105
105
#[ options_doc( aggregate, "run" ) ]
106
- pub fn aggregate ( & self , pipeline : impl IntoIterator < Item = Document > ) -> Aggregate {
106
+ pub fn aggregate ( & self , pipeline : impl IntoIterator < Item = Document > ) -> Aggregate < ' _ > {
107
107
self . async_collection . aggregate ( pipeline)
108
108
}
109
109
}
0 commit comments