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

Fix compile error resulting from outdated to_lower usage. #4

Merged
merged 1 commit into from
May 1, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub mod parsing {

/** Match an exact color keyword. */
fn parse_by_name(color : &str) -> Option<Color> {
let col = match color.to_lower() {
let col = match color.to_ascii().to_lower().to_str() {
~"black" => black(),
~"silver" => silver(),
~"gray" => gray(),
Expand Down