Skip to content

Commit dafd641

Browse files
committed
Removed useless Ui struct field
1 parent d57db77 commit dafd641

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/interface.rs

-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use std::io::Read;
44

55
#[derive(Clone, Debug)]
66
pub struct Ui {
7-
pub nan_err: [String; 2],
87
pub insert_num: String,
98
pub convert_btn: String,
109
pub clear_btn: String,
@@ -20,10 +19,6 @@ pub struct Digits {
2019
impl Ui {
2120
pub fn new(src: &str) -> Self {
2221
let lines = src.split("\n");
23-
let mut ne = [
24-
String::from("nan_err 0 not set!"),
25-
String::from("nan_err 1 not set!"),
26-
];
2722
let mut cvtb = String::from("convert_btn not set!");
2823
let mut cltb = String::from("clear_btn not set!");
2924
let mut ins = String::from("insert_num not set!");
@@ -47,7 +42,6 @@ impl Ui {
4742
}
4843
// generate the new ui struct
4944
Ui {
50-
nan_err: ne,
5145
insert_num: ins,
5246
convert_btn: cvtb,
5347
clear_btn: cltb,

0 commit comments

Comments
 (0)