Minor refactoring for clarity

This commit is contained in:
Patrick Lühne 2020-03-30 05:38:42 +02:00
parent a7e07380ff
commit 6183ae22b5
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF

View File

@ -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)?;