Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Commit a560ffe

Browse files
author
Josh Aas
committed
Fix compile error resulting from outdated to_lower usage.
1 parent 55fc4d7 commit a560ffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

color.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub mod parsing {
7070
7171
/** Match an exact color keyword. */
7272
fn parse_by_name(color : &str) -> Option<Color> {
73-
let col = match color.to_lower() {
73+
let col = match color.to_ascii().to_lower().to_str() {
7474
~"black" => black(),
7575
~"silver" => silver(),
7676
~"gray" => gray(),

0 commit comments

Comments
 (0)