From 73d8609565b808ac73df5ac34e6d4f7f23c25ad6 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 11 Oct 2022 15:45:50 +0200 Subject: Refactor to use a bunch of `into` --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build.rs') diff --git a/build.rs b/build.rs index 8d24e6c..e9d8bda 100644 --- a/build.rs +++ b/build.rs @@ -48,7 +48,7 @@ async fn commonmark() { let parts = re_in_out.split(&case).collect::>(); let input = format!("{}\n", parts[0]); let output = if parts[1].is_empty() { - "".to_string() + "".into() } else { format!("{}\n", parts[1]) }; -- cgit