fix/allow clippy lints

This commit is contained in:
Noah Hellman 2023-02-11 21:21:48 +01:00
parent a6ad7a9d58
commit 413fecfe6a
3 changed files with 12 additions and 10 deletions

View file

@ -351,13 +351,13 @@ impl<'s> TreeParser<'s> {
});
if let ListItem(ty) = c {
if self
let same_depth = self
.open_lists
.last()
.map_or(true, |OpenList { depth, .. }| {
usize::from(*depth) < self.tree.depth()
})
{
});
if same_depth {
let tight = true;
let node = self.tree.enter(
Node::Container(Container::List(ListKind { ty, tight })),