(metadata: &ServiceMetadata)
| 2250 | } |
| 2251 | |
| 2252 | fn service_binary_matches_current(metadata: &ServiceMetadata) -> anyhow::Result<bool> { |
| 2253 | let current = current_simdeck_executable_path()?; |
| 2254 | Ok(paths_refer_to_same_file(&metadata.binary_path, ¤t)) |
| 2255 | } |
| 2256 | |
| 2257 | fn current_simdeck_executable_path() -> anyhow::Result<PathBuf> { |
| 2258 | if let Some(arg0) = env::args_os().next().filter(|value| !value.is_empty()) { |
no test coverage detected