about summary refs log tree commit diff
path: root/src/libfourcc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libfourcc')
-rw-r--r--src/libfourcc/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfourcc/lib.rs b/src/libfourcc/lib.rs
index df693bd1d8b..e0353cb1fb6 100644
--- a/src/libfourcc/lib.rs
+++ b/src/libfourcc/lib.rs
@@ -74,7 +74,7 @@ pub fn expand_syntax_ext(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree]) ->
 
     let little = match endian {
         None => false,
-        Some(Ident{ident, span}) => match token::get_ident(ident.name).get() {
+        Some(Ident{ident, span}) => match token::get_ident(ident).get() {
             "little" => true,
             "big" => false,
             "target" => target_endian_little(cx, sp),