From ac28c20f88c30f3c124951c45f4543d196896e90 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Sat, 3 Dec 2022 22:25:00 +0100 Subject: [PATCH] remove str conversion --- lib/src/filter/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/src/filter/mod.rs b/lib/src/filter/mod.rs index c1f3817e..60c6f8ba 100644 --- a/lib/src/filter/mod.rs +++ b/lib/src/filter/mod.rs @@ -298,9 +298,10 @@ fn overlay(node: &mut Media, chain: &mut Filters, config: &PlayoutConfig) { } if node.next_ad.unwrap_or(false) { - logo_chain.push_str( - format!(",fade=out:st={}:d=1.0:alpha=1", node.out - node.seek - 1.0).as_str(), - ) + logo_chain.push_str(&format!( + ",fade=out:st={}:d=1.0:alpha=1", + node.out - node.seek - 1.0 + )) } chain.add_filter(&logo_chain, 0, Video);