Commit a060476
authored
Fix Windows compilation in libsql-sys (#2184)
This occurs on the latest released version 0.9.24 :
```
error[E0599]: no method named `to_str` found for type parameter `impl AsRef<Path>` in the current scope
Error: --> C:\Users\runneradmin\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\libsql-sys-0.9.24\src\connection.rs:287:18
|
200 | path: impl AsRef<Path>,
| ---------------- method `to_str` not found for this type parameter
...
286 | let path = path
| ________________________-
287 | | .to_str()
| | -^^^^^^ method not found in `impl AsRef<Path>`
| |_________________|
|
For more information about this error, try `rustc --explain E0599`.
error: could not compile `libsql-sys` (lib) due to 1 previous error
```1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
287 | 288 | | |
288 | 289 | | |
289 | 290 | | |
| |||
0 commit comments