From 2d0a7c33bb62a851156c8bfc21c84a9437fc18c6 Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Tue, 23 Aug 2016 13:41:12 +0300 Subject: [PATCH] address grumbles --- ethcore/src/service.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethcore/src/service.rs b/ethcore/src/service.rs index 6d81f6b49..355c7d580 100644 --- a/ethcore/src/service.rs +++ b/ethcore/src/service.rs @@ -169,9 +169,9 @@ impl IoHandler for ClientIoHandler { #[cfg(feature="ipc")] fn run_ipc(base_path: &Path, client: Arc, stop: Arc) { - let mut path = ::std::path::PathBuf::from(base_path); + let mut path = base_path.to_owned(); path.push("parity-chain.ipc"); - let socket_addr = format!("ipc://{}", path.to_str().unwrap()); + let socket_addr = format!("ipc://{}", path.to_string_lossy()); ::std::thread::spawn(move || { let mut worker = nanoipc::Worker::new(&(client as Arc)); worker.add_reqrep(&socket_addr).expect("Ipc expected to initialize with no issues");