diff --git a/src/to_tokens.rs b/src/to_tokens.rs index 660a9ec..2bcb961 100644 --- a/src/to_tokens.rs +++ b/src/to_tokens.rs @@ -107,7 +107,7 @@ impl ToTokens for Rc { impl ToTokens for Option { fn to_tokens(&self, tokens: &mut TokenStream) { - if let Some(ref t) = *self { + if let Some(t) = self { t.to_tokens(tokens); } }