From 667ff8bae95928feea9cc5d746684688fa00159e Mon Sep 17 00:00:00 2001 From: MaxVerevkin Date: Wed, 11 Sep 2024 11:38:06 +0300 Subject: [PATCH] river: handle correctly max_tag > 32 --- src/wm_info_provider/river.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wm_info_provider/river.rs b/src/wm_info_provider/river.rs index f50eefe..6b3c8b0 100644 --- a/src/wm_info_provider/river.rs +++ b/src/wm_info_provider/river.rs @@ -92,7 +92,7 @@ impl WmInfoProvider for RiverInfoProvider { let Some(status) = self.output_statuses.iter().find(|s| s.output == output.wl) else { return Vec::new(); }; - (1..=self.max_tag) + (1..=u8::min(self.max_tag, 32)) .map(|tag| Tag { id: tag as u32, name: tag.to_string(),