Skip to content

Commit 5f97644

Browse files
committed
fix non std issue
1 parent 4f4fb00 commit 5f97644

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ast/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,15 +1911,17 @@ impl fmt::Display for FetchDirection {
19111911
f.write_str("FORWARD")?;
19121912

19131913
if let Some(l) = limit {
1914-
f.write_str(&format!(" {}", l))?;
1914+
f.write_str(" ")?;
1915+
f.write_str(&l.to_string())?;
19151916
}
19161917
}
19171918
FetchDirection::ForwardAll => f.write_str("FORWARD ALL")?,
19181919
FetchDirection::Backward { limit } => {
19191920
f.write_str("BACKWARD")?;
19201921

19211922
if let Some(l) = limit {
1922-
f.write_str(&format!(" {}", l))?;
1923+
f.write_str(" ")?;
1924+
f.write_str(&l.to_string())?;
19231925
}
19241926
}
19251927
FetchDirection::BackwardAll => f.write_str("BACKWARD ALL")?,

0 commit comments

Comments
 (0)