Merge `source` paths into `target`, deduplicating.
(target: &mut Vec<PathBuf>, source: &[PathBuf])
| 995 | |
| 996 | /// Merge `source` paths into `target`, deduplicating. |
| 997 | fn merge_paths(target: &mut Vec<PathBuf>, source: &[PathBuf]) { |
| 998 | for path in source { |
| 999 | if !target.contains(path) { |
| 1000 | target.push(path.clone()); |
| 1001 | } |
| 1002 | } |
| 1003 | } |
| 1004 | |
| 1005 | // Tests |
| 1006 |