chore: use boxed slice if possible (#6858)

This commit is contained in:
Motoyuki Kimura
2024-09-25 19:45:28 +09:00
committed by GitHub
parent 82628b8a78
commit 09bc9a05e4
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ pub(crate) struct Wheel<T> {
/// * ~ 4 min slots / ~ 4 hr range
/// * ~ 4 hr slots / ~ 12 day range
/// * ~ 12 day slots / ~ 2 yr range
levels: Vec<Level<T>>,
levels: Box<[Level<T>]>,
}
/// Number of levels. Each level has 64 slots. By using 6 levels with 64 slots