Auto merge of #7499 - nerith:style, r=metajack

Improve style nit check for space after a comma

Fixes #7345.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7499)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-09-02 12:05:58 -06:00
commit 3424e234c8
14 changed files with 21 additions and 21 deletions

View file

@ -60,7 +60,7 @@ impl DocumentLoader {
/// are lots of iframes. /// are lots of iframes.
pub fn new_with_task(resource_task: Arc<ResourceTask>, pub fn new_with_task(resource_task: Arc<ResourceTask>,
data: Option<NotifierData>, data: Option<NotifierData>,
initial_load: Option<Url>,) initial_load: Option<Url>)
-> DocumentLoader { -> DocumentLoader {
let initial_loads = initial_load.into_iter().map(LoadType::PageSource).collect(); let initial_loads = initial_load.into_iter().map(LoadType::PageSource).collect();

View file

@ -230,8 +230,8 @@ def check_rust(file_name, contents):
# get rid of attributes that do not contain = # get rid of attributes that do not contain =
line = re.sub('^#[A-Za-z0-9\(\)\[\]_]*?$', '', line) line = re.sub('^#[A-Za-z0-9\(\)\[\]_]*?$', '', line)
match = re.search(r",[A-Za-z0-9]", line) match = re.search(r",[^\s]", line)
if match: if match and '$' not in line:
yield (idx + 1, "missing space after ,") yield (idx + 1, "missing space after ,")
if line_is_attribute(line): if line_is_attribute(line):