Encode CommandLine in the index only.
This commit is contained in:
parent
66fee063b6
commit
5a731ffdae
2 changed files with 14 additions and 25 deletions
|
@ -121,7 +121,7 @@ impl<'s> LintLevelsBuilder<'s> {
|
|||
}
|
||||
}
|
||||
|
||||
self.cur = self.sets.list.push(LintSet::CommandLine { specs });
|
||||
self.cur = self.sets.list.push(LintSet { specs, parent: COMMAND_LINE });
|
||||
}
|
||||
|
||||
/// Attempts to insert the `id` to `level_src` map entry. If unsuccessful
|
||||
|
@ -524,7 +524,7 @@ impl<'s> LintLevelsBuilder<'s> {
|
|||
|
||||
let prev = self.cur;
|
||||
if !specs.is_empty() {
|
||||
self.cur = self.sets.list.push(LintSet::Node { specs, parent: prev });
|
||||
self.cur = self.sets.list.push(LintSet { specs, parent: prev });
|
||||
}
|
||||
|
||||
BuilderPush { prev, changed: prev != self.cur }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue