Skip to content

Commit 94257d5

Browse files
committed
rename outdated variable name
1 parent bf06818 commit 94257d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ where
152152
/// Reserve unused color code
153153
fn reserve_color_code(source: &str) -> io::Result<u32> {
154154
lazy_static! {
155-
static ref LOWERCASE_COLOR_CODES: Regex = Regex::new(r##""#[0-9a-fA-F]{6}""##).unwrap();
155+
static ref COLOR_CODES: Regex = Regex::new(r##""#[0-9a-fA-F]{6}""##).unwrap();
156156
}
157157

158158
// Reserve one free hexadecimal color code
159-
let color_codes: BinaryHeap<u32> = LOWERCASE_COLOR_CODES
159+
let color_codes: BinaryHeap<u32> = COLOR_CODES
160160
.find_iter(source)
161161
.map(|m| u32::from_str_radix(m.as_str().trim_matches(['"', '#']), 16))
162162
.chain(iter::once(Ok(0))) // add plain black in case no color codes are found

0 commit comments

Comments
 (0)