Skip to content

Commit 0ce1995

Browse files
committed
adds support for max depth 0
1 parent a312979 commit 0ce1995

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

blake2s/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,9 @@ impl Params {
278278
self
279279
}
280280

281-
/// From 1 (the default, meaning sequential) to 255 (meaning unlimited).
281+
/// From 0, through 1 (the default, meaning sequential) to 255 (meaning unlimited).
282282
#[inline]
283283
pub fn max_depth(&mut self, depth: u8) -> &mut Self {
284-
assert!(depth != 0, "Bad max depth: {}", depth);
285284
self.max_depth = depth;
286285
self
287286
}

0 commit comments

Comments
 (0)