From 78906ffd96fc4743163bc145c63aad562ffc2e15 Mon Sep 17 00:00:00 2001 From: Joscha Date: Wed, 20 Jul 2022 20:49:02 +0200 Subject: [PATCH] Placate some warnings --- src/euph/api/types.rs | 1 - src/ui/chat/tree/blocks.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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 {