Skip to content

Commit 7ddc4f9

Browse files
committed
libsql: Fix build on older Rust toolchains
The JavaScript SDK is unfortunately stuck with Rust 1.78: tursodatabase/libsql-js#104 We should fix that, but since that's hard, let's just once again paper over it by fixing build on older Rust toolchains.
1 parent 6a82223 commit 7ddc4f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libsql/src/sync.rs

+1-1
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)