@@ -93,7 +93,9 @@ fn big_array() {
93
93
}
94
94
95
95
#[ cfg( feature = "bench" ) ]
96
- fn big_array_bench_generic < S : UnificationStore < Key = UnitKey , Value = ( ) > > ( b : & mut Bencher ) {
96
+ fn big_array_bench_generic < S : Default + UnificationStore < Key = UnitKey , Value = ( ) > > (
97
+ b : & mut Bencher ,
98
+ ) {
97
99
let mut ut: UnificationTable < S > = UnificationTable :: new ( ) ;
98
100
let mut keys = Vec :: new ( ) ;
99
101
const MAX : usize = 1 << 15 ;
@@ -128,7 +130,7 @@ fn big_array_bench_Persistent(b: &mut Bencher) {
128
130
}
129
131
130
132
#[ cfg( feature = "bench" ) ]
131
- fn big_array_bench_in_snapshot_generic < S : UnificationStore < Key = UnitKey , Value = ( ) > > (
133
+ fn big_array_bench_in_snapshot_generic < S : Default + UnificationStore < Key = UnitKey , Value = ( ) > > (
132
134
b : & mut Bencher ,
133
135
) {
134
136
let mut ut: UnificationTable < S > = UnificationTable :: new ( ) ;
@@ -169,7 +171,11 @@ fn big_array_bench_in_snapshot_Persistent(b: &mut Bencher) {
169
171
}
170
172
171
173
#[ cfg( feature = "bench" ) ]
172
- fn big_array_bench_clone_generic < S : UnificationStore < Key = UnitKey , Value = ( ) > > ( b : & mut Bencher ) {
174
+ fn big_array_bench_clone_generic <
175
+ S : Default + Clone + UnificationStore < Key = UnitKey , Value = ( ) > ,
176
+ > (
177
+ b : & mut Bencher ,
178
+ ) {
173
179
let mut ut: UnificationTable < S > = UnificationTable :: new ( ) ;
174
180
let mut keys = Vec :: new ( ) ;
175
181
const MAX : usize = 1 << 15 ;
0 commit comments