From 29e92296236112b66409b73bb4ccb6d1a1013f24 Mon Sep 17 00:00:00 2001 From: agentelement Date: Mon, 22 Jul 2024 11:57:51 -0700 Subject: [PATCH] clippy: swap cast for byte char --- src/term.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/term.rs b/src/term.rs index 01b98d1..c1f805e 100644 --- a/src/term.rs +++ b/src/term.rs @@ -509,7 +509,7 @@ fn base26_encode(mut n: u32) -> String { while n > 0 { let m = (n % 26) as u8; let m = if m == 0 { 26 } else { m }; - let c = m + 'a' as u8 - 1; + let c = m + b'a' - 1; buf.push(c); n = (n - 1) / 26 }