diff --git a/resources/coverage/run_coverage.py b/resources/coverage/run_coverage.py index 4c6b48b06..411620c43 100644 --- a/resources/coverage/run_coverage.py +++ b/resources/coverage/run_coverage.py @@ -28,7 +28,7 @@ def run_coverage_test(): subprocess.check_call(['cargo','test'],env=env) def is_my_code(desc): - for path in ['.cargo','library/std','src/py','src/classic/bins']: + for path in ['.cargo','library/std','src/py','src/classic/bins','/rustc']: if path in desc['name']: return False diff --git a/src/util/mod.rs b/src/util/mod.rs index 51943649f..e7b82c43c 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -81,7 +81,7 @@ where let mut finished_idx = 0; // Determine what's defined in these bindings. - for (_, item) in items.iter().enumerate() { + for item in items.iter() { for new_item in item.has.iter() { possible.insert(new_item.clone()); }