Merge `source` paths into `target`, deduplicating.
(target: &mut Vec<PathBuf>, source: &[PathBuf])
| 604 | |
| 605 | /// Merge `source` paths into `target`, deduplicating. |
| 606 | fn merge_paths(target: &mut Vec<PathBuf>, source: &[PathBuf]) { |
| 607 | for path in source { |
| 608 | if !target.contains(path) { |
| 609 | target.push(path.clone()); |
| 610 | } |
| 611 | } |
| 612 | } |
| 613 | |
| 614 | // Tests |
| 615 |