Skip to content

Commit

Permalink
clippy: swap cast for byte char
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentElement committed Jul 22, 2024
1 parent f4278f1 commit 29e9229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 29e9229

Please sign in to comment.