From 642d32f688d735decccf2b844d113c436982f5e0 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Wed, 29 Jun 2022 17:28:31 -0400 Subject: [Rust API] Make more types convertible to BN types --- rust/src/platform.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/src/platform.rs') diff --git a/rust/src/platform.rs b/rust/src/platform.rs index d0cc9282..6bdf8c9f 100644 --- a/rust/src/platform.rs +++ b/rust/src/platform.rs @@ -281,7 +281,7 @@ impl TypeParser for Platform { let mut include_dirs = vec![]; for dir in include_directories.iter() { - let d = dir.as_ref().to_string_lossy().as_bytes_with_nul(); + let d = dir.as_ref().to_string_lossy().to_string().as_bytes_with_nul(); include_dirs.push(d.as_ptr() as _); } -- cgit v1.3.1