From a12e5ed39685ce2f40bc171482903fecfc2f3fa3 Mon Sep 17 00:00:00 2001 From: Sudarsan Balaji Date: Mon, 4 Apr 2022 11:07:51 +0100 Subject: [PATCH] Use Path instead of PathBuf --- bdk-ffi-bindgen/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bdk-ffi-bindgen/src/main.rs b/bdk-ffi-bindgen/src/main.rs index f239112..4b320df 100644 --- a/bdk-ffi-bindgen/src/main.rs +++ b/bdk-ffi-bindgen/src/main.rs @@ -1,5 +1,5 @@ use std::fmt; -use std::path::PathBuf; +use std::path::{Path, PathBuf}; use std::str::FromStr; use structopt::StructOpt; @@ -56,8 +56,8 @@ fn generate_bindings(opt: &Opt) -> anyhow::Result<(), anyhow::Error> { } fn fixup_python_lib_path( - out_dir: &PathBuf, - lib_name: &PathBuf, + out_dir: &Path, + lib_name: &Path, ) -> Result<(), Box> { use std::fs; use std::io::Write;