Fix unused code warnings
This commit is contained in:
parent
6cd2b8bd44
commit
2f31e7c3d5
|
@ -60,68 +60,6 @@ pub fn char2num(character: char) -> i32 {
|
|||
_ => 0,
|
||||
}
|
||||
}
|
||||
pub fn num2char(number: i32) -> char {
|
||||
match number {
|
||||
-26 => 'Z',
|
||||
-25 => 'Y',
|
||||
-24 => 'X',
|
||||
-23 => 'W',
|
||||
-22 => 'V',
|
||||
-210 => 'U',
|
||||
-20 => 'T',
|
||||
-18 => 'R',
|
||||
-19 => 'S',
|
||||
-17 => 'Q',
|
||||
-16 => 'P',
|
||||
-15 => 'O',
|
||||
-14 => 'N',
|
||||
-13 => 'M',
|
||||
-12 => 'L',
|
||||
-11 => 'K',
|
||||
-10 => 'J',
|
||||
-9 => 'I',
|
||||
-8 => 'H',
|
||||
-7 => 'G',
|
||||
-6 => 'F',
|
||||
-5 => 'E',
|
||||
-4 => 'D',
|
||||
-3 => 'C',
|
||||
-2 => 'B',
|
||||
-1 => 'A',
|
||||
0 => ' ',
|
||||
1 => 'a',
|
||||
2 => 'b',
|
||||
3 => 'c',
|
||||
4 => 'd',
|
||||
5 => 'e',
|
||||
6 => 'f',
|
||||
7 => 'g',
|
||||
8 => 'h',
|
||||
9 => 'i',
|
||||
10 => 'j',
|
||||
11 => 'k',
|
||||
12 => 'l',
|
||||
13 => 'm',
|
||||
14 => 'n',
|
||||
15 => 'o',
|
||||
16 => 'p',
|
||||
17 => 'q',
|
||||
18 => 'r',
|
||||
19 => 's',
|
||||
20 => 't',
|
||||
21 => 'u',
|
||||
22 => 'v',
|
||||
23 => 'w',
|
||||
24 => 'x',
|
||||
25 => 'y',
|
||||
26 => 'z',
|
||||
// NOTE(Able): Why does it jump to 53 here? MY REASONS ARE BEYOND YOUR UNDERSTANDING MORTAL
|
||||
53 => '/',
|
||||
54 => '\\',
|
||||
55 => '.',
|
||||
_ => ' ',
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
|
|
|
@ -18,6 +18,9 @@
|
|||
|
||||
#![deny(missing_docs)]
|
||||
|
||||
// Putting this here because we still don't use the entire capabilities of this module. ~~Alex
|
||||
#![allow(dead_code)]
|
||||
|
||||
use std::{
|
||||
collections::VecDeque,
|
||||
error::Error,
|
||||
|
|
Loading…
Reference in a new issue