mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-24 06:31:05 +00:00
Deserialize Box<Path> through PathBuf::into_boxed_path
Including Rc<Path> et al. Fixes https://github.com/serde-rs/serde/issues/1633
This commit is contained in:
+2
-1
@@ -29,8 +29,9 @@ fn main() {
|
||||
println!("cargo:rustc-cfg=core_reverse");
|
||||
}
|
||||
|
||||
// CString::into_boxed_c_str stabilized in Rust 1.20:
|
||||
// CString::into_boxed_c_str and PathBuf::into_boxed_path stabilized in Rust 1.20:
|
||||
// https://doc.rust-lang.org/std/ffi/struct.CString.html#method.into_boxed_c_str
|
||||
// https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.into_boxed_path
|
||||
if minor >= 20 {
|
||||
println!("cargo:rustc-cfg=de_boxed_c_str");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user