fix: native binding (#7985)

This commit is contained in:
DarkSky
2024-08-27 12:31:25 +08:00
committed by GitHub
parent 67c9c7bcc5
commit 6557b5d4b6

View File

@@ -185,7 +185,9 @@ impl SqliteConnection {
.map_err(anyhow::Error::from)?
.count
}
};
}
.try_into()
.unwrap();
Ok(count)
}
@@ -401,7 +403,7 @@ impl SqliteConnection {
.await
.map_err(anyhow::Error::from)?
.max_version;
Ok(version)
Ok(version.try_into().unwrap())
}
#[napi]