From 5f97644f7512863c1c2974c5c95c1ebbe3e2d6c7 Mon Sep 17 00:00:00 2001 From: Dmitry Patsura Date: Wed, 25 May 2022 20:22:31 +0300 Subject: [PATCH] fix non std issue --- src/ast/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ast/mod.rs b/src/ast/mod.rs index c005b31b5..947e23f11 100644 --- a/src/ast/mod.rs +++ b/src/ast/mod.rs @@ -1911,7 +1911,8 @@ impl fmt::Display for FetchDirection { f.write_str("FORWARD")?; if let Some(l) = limit { - f.write_str(&format!(" {}", l))?; + f.write_str(" ")?; + f.write_str(&l.to_string())?; } } FetchDirection::ForwardAll => f.write_str("FORWARD ALL")?, @@ -1919,7 +1920,8 @@ impl fmt::Display for FetchDirection { f.write_str("BACKWARD")?; if let Some(l) = limit { - f.write_str(&format!(" {}", l))?; + f.write_str(" ")?; + f.write_str(&l.to_string())?; } } FetchDirection::BackwardAll => f.write_str("BACKWARD ALL")?,