servo: Merge #8041 - Introduce trait Castable (from nox:castable); r=jdm
Removes all those messy FooCast structures in InheritTypes.rs. Source-Repo: https://github.com/servo/servo Source-Revision: 674589c370d978f543e71f995d58c5b28e6e9842
This commit is contained in:
@@ -305,13 +305,13 @@ def check_rust(file_name, contents):
|
||||
if match:
|
||||
yield (idx + 1, "missing space before {")
|
||||
|
||||
# ignored cases like {} and }}
|
||||
match = re.search(r"[^\s{}]}", line)
|
||||
# ignored cases like {}, }` and }}
|
||||
match = re.search(r"[^\s{}]}[^`]", line)
|
||||
if match and not (line.startswith("use") or line.startswith("pub use")):
|
||||
yield (idx + 1, "missing space before }")
|
||||
|
||||
# ignored cases like {} and {{
|
||||
match = re.search(r"{[^\s{}]", line)
|
||||
# ignored cases like {}, `{ and {{
|
||||
match = re.search(r"[^`]{[^\s{}]", line)
|
||||
if match and not (line.startswith("use") or line.startswith("pub use")):
|
||||
yield (idx + 1, "missing space after {")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user