(workspace: &Workspace)
| 569 | } |
| 570 | |
| 571 | fn workspace_firedbg_version(workspace: &Workspace) -> Result<Option<cfg::Version>> { |
| 572 | let version_path = &workspace.get_version_path(); |
| 573 | let version_path = Path::new(version_path); |
| 574 | let version = if version_path.exists() && version_path.is_file() { |
| 575 | let file_content = fs::read_to_string(&version_path).context("Fail to read")?; |
| 576 | Some(toml::from_str(&file_content).context("Fail to parse TOML")?) |
| 577 | } else { |
| 578 | None |
| 579 | }; |
| 580 | Ok(version) |
| 581 | } |
| 582 | |
| 583 | async fn pin_firedbg_version(workspace: &Workspace) -> Result<()> { |
| 584 | let version = ¤t_firedbg_version(); |
no test coverage detected