Skip to content

Commit

Permalink
fix non std issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed May 25, 2022
1 parent 4f4fb00 commit 5f97644
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ast/mod.rs
Expand Up @@ -1911,15 +1911,17 @@ 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")?,
FetchDirection::Backward { limit } => {
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")?,
Expand Down

0 comments on commit 5f97644

Please sign in to comment.