diff options
author | Hocdoc <bernhardberger@gmx.at> | 2022-11-10 10:06:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 10:06:43 +0100 |
commit | 34ea2841df53a1aafafb01c887965469344552ba (patch) | |
tree | c21d303bd0ac12bc0b81ba41556694139c5b55a6 /src/construct/partial_mdx_jsx.rs | |
parent | 48823f080218d5a13dbde2ed152b8144de5afef8 (diff) | |
download | markdown-rs-34ea2841df53a1aafafb01c887965469344552ba.tar.gz markdown-rs-34ea2841df53a1aafafb01c887965469344552ba.tar.bz2 markdown-rs-34ea2841df53a1aafafb01c887965469344552ba.zip |
Refactor code-style for Rust 1.65
Closes GH-29.
Reviewed-by: Titus Wormer <tituswormer@gmail.com>
Co-authored-by: Bernhard Berger <bernhardberger3456@gmail.com>
Diffstat (limited to 'src/construct/partial_mdx_jsx.rs')
-rw-r--r-- | src/construct/partial_mdx_jsx.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/construct/partial_mdx_jsx.rs b/src/construct/partial_mdx_jsx.rs index e654416..fc03f82 100644 --- a/src/construct/partial_mdx_jsx.rs +++ b/src/construct/partial_mdx_jsx.rs @@ -1119,7 +1119,7 @@ fn crash(tokenizer: &Tokenizer, at: &str, expect: &str) -> State { "{}:{}: Unexpected {} {}, expected {}", tokenizer.point.line, tokenizer.point.column, - format_char_opt(if tokenizer.current == None { + format_char_opt(if tokenizer.current.is_none() { None } else { char_after_index(tokenizer.parse_state.bytes, tokenizer.point.index) |