Skip to content

Commit 726d410

Browse files
committed
Replace unnecessary static -> const
1 parent d9e66a4 commit 726d410

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "2a-emulator"
3-
version = "3.0.5"
3+
version = "3.0.6"
44
authors = ["Malte Tammena <[email protected]>"]
55
edition = "2018"
66

src/tui/interface.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ use crate::helpers;
1919
use crate::machine::State;
2020
use crate::tui::Tui;
2121

22-
pub static MINIMUM_ALLOWED_WIDTH: u16 = 76;
23-
pub static MINIMUM_ALLOWED_HEIGHT: u16 = 25;
24-
22+
pub const MINIMUM_ALLOWED_WIDTH: u16 = 76;
23+
pub const MINIMUM_ALLOWED_HEIGHT: u16 = 25;
2524
const RIGHT_COLUMN_WIDTH: u16 = 35;
2625
const PROGRAM_AREA_HEIGHT: u16 = 7;
2726
const FREQ_AREA_HEIGHT: u16 = 6;
2827
const INPUT_AREA_HEIGHT: u16 = 3;
2928
const HIGHLIGHT_DURATION: Duration = Duration::from_millis(500);
29+
3030
lazy_static! {
3131
static ref BLK_ERROR: Block<'static> = Block::default()
3232
.title("Error")

0 commit comments

Comments
 (0)