chore: clippy fix useless_conversion

This commit is contained in:
quake
2022-07-20 21:28:17 +09:00
parent e707b66639
commit 8d91e7eb63
5 changed files with 7 additions and 8 deletions

View File

@@ -1485,7 +1485,7 @@ fn get_next_token_inner(
let return_comment = return_comment || is_doc_comment(comment.as_ref().expect("`Some`"));
if return_comment {
return Some((Token::Comment(comment.expect("`Some`").into()), start_pos));
return Some((Token::Comment(comment.expect("`Some`")), start_pos));
}
if state.comment_level > 0 {
// Reached EOF without ending comment block