fix/allow clippy lints
This commit is contained in:
parent
a6ad7a9d58
commit
413fecfe6a
3 changed files with 12 additions and 10 deletions
|
@ -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 })),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue