1212} ;
1313
1414pub trait Benched : Sized {
15- type Builder < ' a > ;
15+ type Builder ;
1616
17- fn setup ( builder : Self :: Builder < ' _ > ) -> Result < Self > ;
17+ fn setup ( builder : Self :: Builder ) -> Result < Self > ;
1818
1919 fn drop_storage ( & mut self ) -> Result < ( ) > ;
2020
@@ -24,9 +24,9 @@ pub trait Benched: Sized {
2424}
2525
2626impl < T : LinkType > Benched for unit:: Store < T , FileMapped < LinkPart < T > > > {
27- type Builder < ' a > = FileMapped < LinkPart < T > > ;
27+ type Builder = FileMapped < LinkPart < T > > ;
2828
29- fn setup ( builder : Self :: Builder < ' _ > ) -> Result < Self > {
29+ fn setup ( builder : Self :: Builder ) -> Result < Self > {
3030 let mut links = Self :: new ( builder) ?;
3131 for _ in 0 ..BACKGROUND_LINKS {
3232 links. create_point ( ) ?;
@@ -41,10 +41,10 @@ impl<T: LinkType> Benched for unit::Store<T, FileMapped<LinkPart<T>>> {
4141}
4242
4343impl < T : LinkType > Benched for unit:: Store < T , Alloc < LinkPart < T > , Global > > {
44- type Builder < ' a > = Global ;
44+ type Builder = ( ) ;
4545
46- fn setup ( builder : Self :: Builder < ' _ > ) -> Result < Self > {
47- let storage = Alloc :: new ( builder ) ;
46+ fn setup ( builder : Self :: Builder ) -> Result < Self > {
47+ let storage = Alloc :: new ( Global ) ;
4848 let mut links = Self :: new ( storage) ?;
4949 for _ in 0 ..BACKGROUND_LINKS {
5050 links. create_point ( ) ?;
@@ -59,9 +59,9 @@ impl<T: LinkType> Benched for unit::Store<T, Alloc<LinkPart<T>, Global>> {
5959}
6060
6161impl < T : LinkType > Benched for split:: Store < T , FileMapped < DataPart < T > > , FileMapped < IndexPart < T > > > {
62- type Builder < ' a > = ( FileMapped < DataPart < T > > , FileMapped < IndexPart < T > > ) ;
62+ type Builder = ( FileMapped < DataPart < T > > , FileMapped < IndexPart < T > > ) ;
6363
64- fn setup ( builder : Self :: Builder < ' _ > ) -> Result < Self > {
64+ fn setup ( builder : Self :: Builder ) -> Result < Self > {
6565 let ( data, index) = builder;
6666 let mut links = Self :: new ( data, index) ?;
6767 for _ in 0 ..BACKGROUND_LINKS {
@@ -79,10 +79,10 @@ impl<T: LinkType> Benched for split::Store<T, FileMapped<DataPart<T>>, FileMappe
7979impl < T : LinkType > Benched
8080 for split:: Store < T , Alloc < DataPart < T > , Global > , Alloc < IndexPart < T > , Global > >
8181{
82- type Builder < ' a > = Global ;
82+ type Builder = ( ) ;
8383
84- fn setup ( builder : Self :: Builder < ' _ > ) -> Result < Self > {
85- let ( data, index) = ( Alloc :: new ( builder ) , Alloc :: new ( builder ) ) ;
84+ fn setup ( builder : Self :: Builder ) -> Result < Self > {
85+ let ( data, index) = ( Alloc :: new ( Global ) , Alloc :: new ( Global ) ) ;
8686 let mut links = Self :: new ( data, index) ?;
8787 for _ in 0 ..BACKGROUND_LINKS {
8888 links. create_point ( ) ?;
@@ -97,10 +97,10 @@ impl<T: LinkType> Benched
9797}
9898
9999impl < T : LinkType > Benched for Client < T > {
100- type Builder < ' a > = & ' a Runtime ;
100+ type Builder = Runtime ;
101101
102- fn setup ( builder : Self :: Builder < ' _ > ) -> Result < Self > {
103- let mut client = builder . block_on ( connect ( ) ) ?;
102+ fn setup ( builder : Self :: Builder ) -> Result < Self > {
103+ let mut client = connect ( builder ) ?;
104104 for _ in 0 ..BACKGROUND_LINKS {
105105 client. create_point ( ) ?;
106106 }
@@ -118,9 +118,9 @@ impl<T: LinkType> Benched for Client<T> {
118118}
119119
120120impl < ' a , T : LinkType > Benched for Transaction < ' a , T > {
121- type Builder < ' b > = & ' a mut Client < T > ;
121+ type Builder = & ' a mut Client < T > ;
122122
123- fn setup ( builder : Self :: Builder < ' _ > ) -> Result < Self > {
123+ fn setup ( builder : Self :: Builder ) -> Result < Self > {
124124 let mut transaction = builder. transaction ( ) . unwrap ( ) ;
125125 transaction. create_table ( ) . unwrap ( ) ;
126126 for _ in 0 ..BACKGROUND_LINKS {
0 commit comments