Satisfy msrv by removing then_some.

This commit is contained in:
Stephen Chung
2023-02-21 18:16:03 +08:00
parent c58b52f2cb
commit 14e205cabc
5 changed files with 8 additions and 8 deletions

View File

@@ -1229,7 +1229,7 @@ fn get_next_token_inner(
// Still inside a comment?
if state.comment_level > 0 {
let start_pos = *pos;
let mut comment = state.include_comments.then_some(String::new());
let mut comment = state.include_comments.then(|| String::new());
state.comment_level =
scan_block_comment(stream, state.comment_level, pos, comment.as_mut());