Skip to content
Snippets Groups Projects
Verified Commit 7b70a23c authored by pigeonmoelleux's avatar pigeonmoelleux 💬 Committed by v-lafeychine
Browse files

fix(kernel): fixed issues enlightened during the review

* Change the location of `max_depth` which is now a impl of Builder
 * Remove the corresponding tests, which will be added in the future
* The test for the depth is now made before the creation of the `Level` struct
parent fb8abea7
No related branches found
No related tags found
1 merge request!60Resolve "Unhandled integers"
......@@ -52,6 +52,7 @@ pub enum Builder<'builder> {
}
impl<'build> Builder<'build> {
#[inline]
fn max_depth(&self) -> usize {
match self {
Builder::Zero => 0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment