File tree 3 files changed +3
-6
lines changed
3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -287,10 +287,9 @@ impl Params {
287
287
self
288
288
}
289
289
290
- /// From 1 (the default, meaning sequential) to 255 (meaning unlimited).
290
+ /// From 0, through 1 (the default, meaning sequential) to 255 (meaning unlimited).
291
291
#[ inline]
292
292
pub fn max_depth ( & mut self , depth : u8 ) -> & mut Self {
293
- assert ! ( depth != 0 , "Bad max depth: {}" , depth) ;
294
293
self . max_depth = depth;
295
294
self
296
295
}
Original file line number Diff line number Diff line change @@ -172,8 +172,7 @@ fn test_long_personal_panics() {
172
172
}
173
173
174
174
#[ test]
175
- #[ should_panic]
176
- fn test_zero_max_depth_panics ( ) {
175
+ fn test_zero_max_depth_supported ( ) {
177
176
Params :: new ( ) . max_depth ( 0 ) ;
178
177
}
179
178
Original file line number Diff line number Diff line change @@ -168,8 +168,7 @@ fn test_long_personal_panics() {
168
168
}
169
169
170
170
#[ test]
171
- #[ should_panic]
172
- fn test_zero_max_depth_panics ( ) {
171
+ fn test_zero_max_depth_supported ( ) {
173
172
Params :: new ( ) . max_depth ( 0 ) ;
174
173
}
175
174
You can’t perform that action at this time.
0 commit comments