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