From a560ffe63ba8140a9a02bbec380f8c193972da0b Mon Sep 17 00:00:00 2001 From: Josh Aas Date: Tue, 30 Apr 2013 13:12:33 -0500 Subject: [PATCH] Fix compile error resulting from outdated to_lower usage. --- color.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/color.rs b/color.rs index ad21e7c..8cd11f1 100644 --- a/color.rs +++ b/color.rs @@ -70,7 +70,7 @@ pub mod parsing { /** Match an exact color keyword. */ fn parse_by_name(color : &str) -> Option { - let col = match color.to_lower() { + let col = match color.to_ascii().to_lower().to_str() { ~"black" => black(), ~"silver" => silver(), ~"gray" => gray(),