(line: &str)
| 2529 | } |
| 2530 | |
| 2531 | fn line_has_only_allowed_std_symbols(line: &str) -> bool { |
| 2532 | let code_part = split_line_comment(line); |
| 2533 | if !code_part.contains("std::") { |
| 2534 | return true; |
| 2535 | } |
| 2536 | |
| 2537 | regex_std_usage().find_iter(code_part).all(|usage| { |
| 2538 | ALLOWED_STD_SYMBOLS |
| 2539 | .iter() |
| 2540 | .any(|allowed| *allowed == usage.as_str()) |
| 2541 | }) |
| 2542 | } |
| 2543 | |
| 2544 | fn serial_replacement(method: &str) -> &'static str { |
| 2545 | match method { |
no test coverage detected