diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-05-25 21:23:12 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-05-25 21:23:12 +0200 |
| commit | b6b6e3692404e32873892810bebeb1122f34c52e (patch) | |
| tree | e619fb88b54faab717063c912e3e15f01aa5d743 /src/library | |
| parent | 30fdba4356683198a298eebb44e28cb8c191a0e1 (diff) | |
Replace static with const in two places
Diffstat (limited to 'src/library')
| -rw-r--r-- | src/library/utility/string.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/utility/string.rs b/src/library/utility/string.rs index 2f80a5cb..3036df06 100644 --- a/src/library/utility/string.rs +++ b/src/library/utility/string.rs @@ -116,7 +116,7 @@ impl Numbering { } } -static ROMANS: &'static [(&'static str, usize)] = &[ +const ROMANS: &[(&str, usize)] = &[ ("M̅", 1000000), ("D̅", 500000), ("C̅", 100000), @@ -139,4 +139,4 @@ static ROMANS: &'static [(&'static str, usize)] = &[ ("I", 1), ]; -static SYMBOLS: &'static [char] = &['*', '†', '‡', '§', '‖', '¶']; +const SYMBOLS: &[char] = &['*', '†', '‡', '§', '‖', '¶']; |
