Browse Source

Minor refactoring for clarity

master
Patrick Lühne 2 years ago
parent
commit
6183ae22b5
Signed by: patrick GPG Key ID: 05F3611E97A70ABF
  1. 2
      src/format.rs

2
src/format.rs

@ -183,7 +183,7 @@ impl<'term> std::fmt::Debug for TermDisplay<'term>
"number of function arguments differs from declaration (expected {}, got {})",
function.declaration.arity, function.arguments.len());
if function.arguments.len() > 0
if !function.arguments.is_empty()
{
write!(format, "{}(", function.declaration.name)?;

Loading…
Cancel
Save