Placate some warnings

This commit is contained in:
Joscha 2022-07-20 20:49:02 +02:00
parent 2b90815f65
commit 78906ffd96
2 changed files with 2 additions and 3 deletions

View file

@ -285,7 +285,6 @@ pub struct SessionView {
pub struct Snowflake(pub u64); pub struct Snowflake(pub u64);
impl Snowflake { impl Snowflake {
pub const MIN: Self = Snowflake(u64::MIN);
pub const MAX: Self = Snowflake(u64::MAX); pub const MAX: Self = Snowflake(u64::MAX);
} }

View file

@ -241,7 +241,7 @@ impl<I: Ord> Blocks<I> {
} }
if let Some((l_root_top, l_root_bot)) = layout.roots { if let Some((l_root_top, l_root_bot)) = layout.roots {
if let Some((root_top, root_bot)) = &mut self.roots { if let Some((root_top, _)) = &mut self.roots {
assert!(l_root_bot < *root_top); assert!(l_root_bot < *root_top);
*root_top = l_root_top; *root_top = l_root_top;
} else { } else {
@ -256,7 +256,7 @@ impl<I: Ord> Blocks<I> {
} }
if let Some((l_root_top, l_root_bot)) = layout.roots { if let Some((l_root_top, l_root_bot)) = layout.roots {
if let Some((root_top, root_bot)) = &mut self.roots { if let Some((_, root_bot)) = &mut self.roots {
assert!(l_root_top > *root_bot); assert!(l_root_top > *root_bot);
*root_bot = l_root_bot; *root_bot = l_root_bot;
} else { } else {