Skip to content

Commit b8f30ff

Browse files
authored
Merge pull request #1870 from tursodatabase/fix-build-with-old-toolchain
libsql: Fix build on older Rust toolchains
2 parents 105748d + 7ddc4f9 commit b8f30ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libsql/src/sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ impl SyncContext {
309309
async fn read_metadata(&mut self) -> Result<()> {
310310
let path = format!("{}-info", self.db_path);
311311

312-
if !std::fs::exists(&path).map_err(SyncError::io("metadata file exists"))? {
312+
if !Path::new(&path).try_exists().map_err(SyncError::io("metadata file exists"))? {
313313
tracing::debug!("no metadata info file found");
314314
return Ok(());
315315
}

0 commit comments

Comments
 (0)