(home: Option<PathBuf>)
| 138 | |
| 139 | #[must_use] |
| 140 | fn default_driver_search_dirs(home: Option<PathBuf>) -> Vec<PathBuf> { |
| 141 | let mut dirs = Vec::new(); |
| 142 | if let Some(home) = home { |
| 143 | dirs.push(home.join(".local").join("libexec").join("openshell")); |
| 144 | } |
| 145 | push_unique_path(&mut dirs, PathBuf::from("/usr/libexec/openshell")); |
| 146 | push_unique_path(&mut dirs, PathBuf::from("/usr/local/libexec/openshell")); |
| 147 | push_unique_path(&mut dirs, PathBuf::from("/usr/local/libexec")); |
| 148 | dirs |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | impl Default for VmComputeConfig { |
nothing calls this directly
no test coverage detected