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/to_html.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/to_html.rs') diff --git a/src/to_html.rs b/src/to_html.rs index 2685120..1892ba1 100644 --- a/src/to_html.rs +++ b/src/to_html.rs @@ -685,7 +685,7 @@ fn on_enter_paragraph(context: &mut CompileContext) { /// Handle [`Enter`][Kind::Enter]:[`Resource`][Name::Resource]. fn on_enter_resource(context: &mut CompileContext) { context.buffer(); // We can have line endings in the resource, ignore them. - context.media_stack.last_mut().unwrap().destination = Some("".into()); + context.media_stack.last_mut().unwrap().destination = Some(String::new()); } /// Handle [`Enter`][Kind::Enter]:[`ResourceDestinationString`][Name::ResourceDestinationString]. -- cgit