Skip to content

Commit

Permalink
Delete unneeded use of ref
Browse files Browse the repository at this point in the history
No longer needed since Rust 1.26.
  • Loading branch information
dtolnay committed Aug 22, 2024
1 parent 9382c21 commit 43acd77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/to_tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl<T: ?Sized + ToTokens> ToTokens for Rc<T> {

impl<T: ToTokens> ToTokens for Option<T> {
fn to_tokens(&self, tokens: &mut TokenStream) {
if let Some(ref t) = *self {
if let Some(t) = self {
t.to_tokens(tokens);
}
}
Expand Down

0 comments on commit 43acd77

Please sign in to comment.