diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-02-26 10:40:09 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-02-26 10:40:09 +0100 |
commit | 0f2d000a230858f8fbedae0a23904ed412e2ff5c (patch) | |
tree | 504ecdd5f93093b73773793a6ce45c5ea9b78f21 /components/style_traits/cursor.rs | |
parent | 4fa3e8e82c29c24078aeb3110feac998b2042dcd (diff) | |
download | servo-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.rs | 4 |
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(()) } } |