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/gfm_autolink_literal.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/gfm_autolink_literal.rs')
-rw-r--r-- | src/construct/gfm_autolink_literal.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/construct/gfm_autolink_literal.rs b/src/construct/gfm_autolink_literal.rs index 5438e36..cc9194d 100644 --- a/src/construct/gfm_autolink_literal.rs +++ b/src/construct/gfm_autolink_literal.rs @@ -334,7 +334,7 @@ pub fn www_prefix_inside(tokenizer: &mut Tokenizer) -> State { /// ``` pub fn www_prefix_after(tokenizer: &mut Tokenizer) -> State { // If there is *anything*, we can link. - if tokenizer.current == None { + if tokenizer.current.is_none() { State::Nok } else { State::Ok |