Skip to content

Commit cbfe331

Browse files
committed
sqlite: re-allow unsafe_code for FFI; fix Pg options path AsRef deref
1 parent 198b125 commit cbfe331

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sqlx-core/src/postgres/options/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ impl FromStr for PgConnectOptions {
1616
if let Some(host) = url.host_str() {
1717
let host_decoded = percent_decode_str(host);
1818
options = match host_decoded.clone().next() {
19-
Some(b'/') => options.socket(&host_decoded.decode_utf8().map_err(Error::config)?),
19+
Some(b'/') => options.socket(&*host_decoded.decode_utf8().map_err(Error::config)?),
2020
_ => options.host(host),
2121
}
2222
}

sqlx-core/src/sqlite/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! **SQLite** database driver.
22
3+
#![allow(unsafe_code)]
34
// SQLite is a C library. All interactions require FFI which is unsafe.
45
// All unsafe blocks should have comments pointing to SQLite docs and ensuring that we maintain
56
// invariants.

0 commit comments

Comments
 (0)