Skip to content

Commit 1739365

Browse files
lqdcompiler-errors
authored andcommitted
use is_empty instead of zero length
1 parent 1ee802f commit 1739365

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/formality-types/src/grammar/ty/debug_impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ impl<'a> PrettyParameters<'a> {
8484

8585
impl Debug for PrettyParameters<'_> {
8686
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
87-
if self.p.len() == 0 {
87+
if self.p.is_empty() {
8888
Ok(())
8989
} else {
9090
write!(f, "{}", self.open)?;

0 commit comments

Comments
 (0)