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