From 34ea2841df53a1aafafb01c887965469344552ba Mon Sep 17 00:00:00 2001 From: Hocdoc Date: Thu, 10 Nov 2022 10:06:43 +0100 Subject: Refactor code-style for Rust 1.65 Closes GH-29. Reviewed-by: Titus Wormer Co-authored-by: Bernhard Berger --- src/construct/gfm_autolink_literal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/construct/gfm_autolink_literal.rs') 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 -- cgit