mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +01:00
style: Rustfmt servo/. r=zrhoffman
$ find servo -name '*.rs' | xargs rustup run nightly rustfmt Depends on D179380 Differential Revision: https://phabricator.services.mozilla.com/D179381
This commit is contained in:
parent
68cbe6833d
commit
ad72081ac8
70 changed files with 665 additions and 448 deletions
|
@ -85,7 +85,11 @@ impl<'a> ParserContext<'a> {
|
|||
}
|
||||
|
||||
/// Temporarily sets the rule_type and executes the callback function, returning its result.
|
||||
pub fn nest_for_rule<R>(&mut self, rule_type: CssRuleType, cb: impl FnOnce(&mut Self) -> R) -> R {
|
||||
pub fn nest_for_rule<R>(
|
||||
&mut self,
|
||||
rule_type: CssRuleType,
|
||||
cb: impl FnOnce(&mut Self) -> R,
|
||||
) -> R {
|
||||
let old_rule_types = self.rule_types;
|
||||
self.rule_types.insert(rule_type);
|
||||
let r = cb(self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue