mirror of
https://github.com/servo/servo.git
synced 2025-06-13 19:04:30 +00:00
Update some code that's feature-gated under core.
This commit is contained in:
parent
29a36adbe7
commit
ba87666cdb
33 changed files with 104 additions and 107 deletions
|
@ -27,7 +27,7 @@ impl LintPass for PrivatizePass {
|
|||
match field.node {
|
||||
ast::StructField_ { kind: ast::NamedField(ident, visibility), .. } if visibility == Public => {
|
||||
cx.span_lint(PRIVATIZE, field.span,
|
||||
format!("Field {} is public where only private fields are allowed", ident.name).as_slice());
|
||||
&format!("Field {} is public where only private fields are allowed", ident.name));
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue