()
| 1863 | } |
| 1864 | |
| 1865 | fn home_dir() -> PathBuf { |
| 1866 | env::var_os("HOME") |
| 1867 | .or_else(|| env::var_os("USERPROFILE")) |
| 1868 | .or_else( |
| 1869 | || match (env::var_os("HOMEDRIVE"), env::var_os("HOMEPATH")) { |
| 1870 | (Some(drive), Some(path)) => { |
| 1871 | let mut combined = PathBuf::from(drive); |
| 1872 | combined.push(path); |
| 1873 | Some(combined.into_os_string()) |
| 1874 | } |
| 1875 | _ => None, |
| 1876 | }, |
| 1877 | ) |
| 1878 | .map(PathBuf::from) |
| 1879 | .unwrap_or_else(|| Path::new("/").to_path_buf()) |
| 1880 | } |
| 1881 | |
| 1882 | fn extract_xml(output: &str) -> &str { |
| 1883 | output |
no outgoing calls
no test coverage detected