aboutsummaryrefslogtreecommitdiffstats
path: root/components/style_traits/cursor.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-02-26 10:40:09 +0100
committerSimon Sapin <simon.sapin@exyr.org>2017-02-26 10:40:09 +0100
commit0f2d000a230858f8fbedae0a23904ed412e2ff5c (patch)
tree504ecdd5f93093b73773793a6ce45c5ea9b78f21 /components/style_traits/cursor.rs
parent4fa3e8e82c29c24078aeb3110feac998b2042dcd (diff)
downloadservo-0f2d000a230858f8fbedae0a23904ed412e2ff5c.tar.gz
servo-0f2d000a230858f8fbedae0a23904ed412e2ff5c.zip
Borrow input to match_ignore_ascii_case!
In cssparser version 0.11, this macro will stop implicitly borrowing its own input.
Diffstat (limited to 'components/style_traits/cursor.rs')
-rw-r--r--components/style_traits/cursor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style_traits/cursor.rs b/components/style_traits/cursor.rs
index aefd562cc32..447dfe0966e 100644
--- a/components/style_traits/cursor.rs
+++ b/components/style_traits/cursor.rs
@@ -20,8 +20,8 @@ macro_rules! define_cursor {
impl Cursor {
/// Given a CSS keyword, get the corresponding cursor enum.
pub fn from_css_keyword(keyword: &str) -> Result<Cursor, ()> {
- match_ignore_ascii_case! { keyword,
- $( concat!($css) => Ok(Cursor::$variant), )+
+ match_ignore_ascii_case! { &keyword,
+ $( $css => Ok(Cursor::$variant), )+
_ => Err(())
}
}