(path: &Path)
| 5386 | } |
| 5387 | |
| 5388 | fn sync_directory(path: &Path) -> Result<(), RepositoryError> { |
| 5389 | #[cfg(unix)] |
| 5390 | { |
| 5391 | File::open(path)?.sync_all()?; |
| 5392 | } |
| 5393 | #[cfg(not(unix))] |
| 5394 | { |
| 5395 | let _ = path; |
| 5396 | } |
| 5397 | Ok(()) |
| 5398 | } |
| 5399 | |
| 5400 | #[cfg(test)] |
| 5401 | mod projected_capability_lease_tests { |
no test coverage detected