@@ -39,7 +39,7 @@ impl Database {
3939 /// called, the returned cursor will be generic over the `T` specified.
4040 #[ deeplink]
4141 #[ 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 < ' _ > {
4343 Aggregate :: new (
4444 AggregateTargetRef :: Database ( self ) ,
4545 pipeline. into_iter ( ) . collect ( ) ,
6161 /// called, the returned cursor will be generic over the `T` specified.
6262 #[ deeplink]
6363 #[ 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 < ' _ > {
6565 Aggregate :: new (
6666 AggregateTargetRef :: Collection ( CollRef :: new ( self ) ) ,
6767 pipeline. into_iter ( ) . collect ( ) ,
@@ -82,7 +82,7 @@ impl crate::sync::Database {
8282 /// returned cursor will be generic over the `T` specified.
8383 #[ deeplink]
8484 #[ 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 < ' _ > {
8686 self . async_database . aggregate ( pipeline)
8787 }
8888}
@@ -103,7 +103,7 @@ where
103103 /// returned cursor will be generic over the `T` specified.
104104 #[ deeplink]
105105 #[ 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 < ' _ > {
107107 self . async_collection . aggregate ( pipeline)
108108 }
109109}
0 commit comments