Merge `source` paths into `target`, deduplicating.
(target: &mut Vec<PathBuf>, source: &[PathBuf])
| 612 | |
| 613 | /// Merge `source` paths into `target`, deduplicating. |
| 614 | fn merge_paths(target: &mut Vec<PathBuf>, source: &[PathBuf]) { |
| 615 | for path in source { |
| 616 | if !target.contains(path) { |
| 617 | target.push(path.clone()); |
| 618 | } |
| 619 | } |
| 620 | } |
| 621 | |
| 622 | // Tests |
| 623 |