diff --git a/src/euph/api/types.rs b/src/euph/api/types.rs index de050fb..adb7772 100644 --- a/src/euph/api/types.rs +++ b/src/euph/api/types.rs @@ -285,7 +285,6 @@ pub struct SessionView { pub struct Snowflake(pub u64); impl Snowflake { - pub const MIN: Self = Snowflake(u64::MIN); pub const MAX: Self = Snowflake(u64::MAX); } diff --git a/src/ui/chat/tree/blocks.rs b/src/ui/chat/tree/blocks.rs index a058bec..f97696c 100644 --- a/src/ui/chat/tree/blocks.rs +++ b/src/ui/chat/tree/blocks.rs @@ -241,7 +241,7 @@ impl Blocks { } 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); *root_top = l_root_top; } else { @@ -256,7 +256,7 @@ impl Blocks { } 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); *root_bot = l_root_bot; } else {